Forum rules - please read before posting.

Will values of local variables survive a game app update?

edited September 2018 in Technical Q&A
I am following the recommendation to use local variables instead of global ones whenever possible. Hence I also use them to record the progress of solving intra-scene puzzles.

Now I wonder: if a player has solved parts of such a puzzle, and I publish an app update to the App Store that gets automatically loaded by the player‘s device over night, will his progress survive? Or will local variables get reset as a side effect of an app update?

Comments

  • All per-scene and global data is bundled together to make a single save file.  On iOS and Android devices, such files are stored in Unity's persistentDataPath.

    Going by Unity's own documentation on that page, you should be safe to update without loss of such data.
  • Thank you, Chris!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.
Do NOT follow this link or you will be banned from the site!