Resources folder (547027)

How does it work? Resources added to the resources folder are included when building the game.
But my .txt files do not show up in the resources folder when I build the game.
Did they get encrypted/packed?

How do I prevent the cypting/packaging, or is there another way to add extra files to the game during the build process?

I have a mapcycle.txt file that I want players to be able to modify out of the game.
I would also be able to sync it to the cloud and can’t do that when its packed.

Everything that is bundled by Unity should stay untouched. Otherwise you may end up in a huge disaster.

What is the target platform?

pc/Linux/osx

I have the txt load as an external resource.

  • var sMapCycleTXT : String = Application.dataPath + “/mapcycle.txt”;

I got tired of copy pasting it to the game folder after building the game ( or forget to do it ), so I was looking for an automated way of doing this and tought adding it to the resources folder would do the trick.

  • var sMapCycleTXT : String = Application.dataPath + “/Resources/mapcycle.txt”;

How about changing the logic as follows:

  • Check whether Application.dataPath + “/mapcycle.txt” exists
    → If not, load the default one (doesn’t necessarily need to be in the resource folder)
    → Otherwise, use it

- Save changes to Application.dataPath + “/mapcycle.txt”

That should work.

Yes, everything in the Resources folder is bundled into a file. The Resources folder does not exist as such in a build.

–Eric