- Home /
Need a clue. The best way to save level data without duplication
I have a game with some levels. This levels contain a couple of textures and some other data. It saved in JSON format (with base64 images). But sometimes new level can be released or the old one can be updated (also in JSON, can't use AssetsBundle). So, I have some initial levels, which can be updated, and the new levels which can be released. And the question is "What's the best way to store it?" 'cause I can use something like StreamingAssets, Resources for initial levels, but it's only readonly and I can't save to this folders or rewrite its files. And for new levels I have only PersistentDataPath to save.
Of course I can copy from StreamingAssets / Resources to PersistentDataPath and have all in one folder, but it's not the best way, 'cause i cant delete files from StreamingAssets / Resources.
Not sure what you mean by levels, but did you have a look at prefabs? It is also explained in one of the unity tutorials, but can't find where it was.
I did, but unfortunately It's not what I'm asking about. The problem is "Where can i save files?". Because I want to save all files (levels data) in one folder without duplicates. And I somehow have to load initial files to the iOS/Android ( I can do it with Strea$$anonymous$$gAssets or Resources folders), but I can't change this data at runtime. What do I want to accomplish is to have one folder with all data which I can read/write and don't have initial levels copies in other folder.
Your answer
![](https://koobas.hobune.stream/wayback/20220612184605im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
(SOLVED!) Saving/loading data for EACH LEVEL with MULTIPLE VARIABLES 2 Answers
Save quantities 1 Answer
How do I delete an object in my Project 2 Answers
Delete some files at build time 0 Answers
gameObject to play sound on deletion, won't work... 1 Answer