- Home /
Reseting Prefabs when update
Hi all. I have an game on playstore, and when i update it, all the prefabs reset, such as level saved, skins unlocked, level time. So, if a user update the game, is the same of reinstaling it. How can i keep the prefabs on updating the game?
Answer by yelman · Jan 07, 2016 at 02:49 PM
I assume you are talking about saved data and not actual prefabs. Are you using PlayerPrefs for saving data?
$$anonymous$$ake sure you didn't accedently added UnityEngine.PlayerPrefs.DeleteAll()
As it's frequently used for testing.
Validate that the keys are the same as were used for previous version.
Also make sure that app bundleID is the same as for previous version, otherwise a new instance will be installed rather than updating the previous one.
The bundle identifier is the same, but bundle version need to be different, otherwise playstore won't accept it, because it can't have same bundle version. So, in every update that i need to send to playstore, all player data get reseted
Your answer
Follow this Question
Related Questions
Update function in a UnityScript attached to 50 clones of a prefab: heavy or not? 1 Answer
how do i make this to a negative (ShopRespawn < 180)? 1 Answer
How to reset a gameobject's transform? 2 Answers
ReplacePrefab() resets transforms for instanced prefabs? 1 Answer
The value is not reset for prefab. 2 Answers