Resources won't be put into the actual build

Hey,

I’m fairly new to Unity but I managed to load some txt files I need for my game with the help of Resources.Load.
This works perfectly in the editor if I press play but the files won’t be distributed with a build.

The debug console says file is missing. In the docs I’ve read that all files in each folder called “Resources” (mine is at Assets/Resources) will get copied to the final build. Apparently this does not really work for me.

Does somebody have an idea what I could do to make it work?

In most cases I’d recommend using TextAsset files referenced with public variables rather than Resources.Load.

–Eric

I’m loading these files in a Singleton so it’s fairly hard to assign them in the inspector.

I just want to understand how that Resource folder mechanism works since it seems to not copy “all” assets as it says in the docs.

Nobody got an idea what I could do? :slight_smile:

bump.

I’m over trying to make Unity do it for me…Now I’m trying to find a way how to run an editor C# script each time it gets build to copy the files…