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.
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”;
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”