Search code examples
unity-game-engineunity3d-editor

how to make unity build folders share the same assets


I have multiple Unity3d applications (projects). But the underlying scenes and assets are meant to be common across these different applications. Right now, I am having to manually copy the assets folder across the different projects before a build is taken.

How can I make my Unity project refer to a common assets folder (shared between more than one Unity project)?

Is this possible ?


Solution

  • You should be able to do this with symbolic links.

    If you are using windows:

    https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mklink

    For example:

    # mklink /d link target
    mklink /d "C:\unity\mysharedfolder" "C:\unity\project1\linktosharedfolder"
    

    Or on a Unix system:

    man ln
    

    For example:

    ln -s ./mysharedfolder/ ./project/linktosharedfolder