Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Folder shared between project

Discussion in 'General Discussion' started by bplc, Aug 18, 2022.

  1. bplc

    bplc

    Joined:
    Mar 10, 2022
    Posts:
    104
    I would like to know if it was possible to create a shared folder between different projects thank you :)
     
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,321
    Yes, via symlinks or hardlinks.

    It is not a great idea, however.

    It is better to put this into a separate version control repository instead, and reuse the same repository by each project. This way you'd be able to modify the folder in each project, without breaking every other project.
     
    bplc likes this.
  3. bplc

    bplc

    Joined:
    Mar 10, 2022
    Posts:
    104
    OK, thanks
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,028
    Packages!

    Common code/assets go into a package so you can easily share it between projects and have the package in a central (version controlled) location.

    Symlinks/hardlinks will have Unity throw Console errors all the time, telling you it disabled file change detection or something.
     
    r31o, bplc, GimmyDev and 1 other person like this.