Storing Level Data in Json Text in Streaming Asstes Folder
Hi,
I am thinking of storing my Level Data (more than 50 Levels) in Json Text File Format and retrieve respective to current level . My questions regarding this are as follows :
If i want to update a game in future how to change the json file as Streaming assets Folder is Read Only
Or instead of using Streaming Assets Folder should i create another one (like LevelData) and retrieve from that
Or Is there any other best practice if i am of the track .
My Concern is about changing the Json later to update the levels and make the update minimum.
Thanks in Advance!
Why don't you use the Resources folder ?
docs.unity3d.com/$$anonymous$$anual/LoadingResourcesatRuntime.html
Answer by superpig · Feb 09, 2016 at 01:08 PM
Use both. Ship a 'base version' of your JSON files in the StreamingAssets folder (or in Resources, if you like), but when downloading updates, store them somewhere writable (like inside the user's data folder). Then have your loading code check that location first before falling back to the StreamingAssets version.