Add links or shortcuts to Resource folders?

Moving assets into a Resources folder so they can be dynamically loaded irks me a little, as moving assets around can easily mess up a nicely organised asset hierarchy.

The video mentions that Unity can “follow the references” from anything in a Resources directory to include all dependencies, which makes me wonder if there is a way to add a “shortcut” or some kind of “link” to each asset you want in the Resources folder, without actually moving them in?

Could one simply add a prefab with a Component defined that just holds a user-configurable array of objects, so that the user can simply drag/drop all required assets into the array and have Unity pick them up? I imagine some logic may be needed to allow for lookup by name, though.

Answering my own question: it seems that symbolic links (symlinks) can be used on some platforms (Windows, Linux) but are problematic on Mac OS, so that’s probably not a good option.

Apparently in Unity 2018.2 and newer, there’s something called the Addressable Assets package which might be a useful alternative option. However there’s some complexity involved as the API is purely asynchronous.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms