Question by
MSUnityPro1 · Dec 02, 2016 at 06:26 PM ·
playerprefspreferences
PlayerPrefs Created from Unity 5.1.3 are not deleting in Unity 5.4.1 using PlayerPrefs.DeleteAll()
Hi All, Recently I migrated my game from Unity 5.1.3f1 to Unity 5.4.1. I delete all my prefs using PlayerPrefs.DeleteAll() in a particular scenario in game and after deleting I also call PlayerPrefs.Save(). Then I save a string against a key that was also available in old deleted prefs I called save again and also verified new value correctness after reading from prefs. But when I reopen the game again the PlayerPrefs values that was part of old build made from Unity 5.1.3f1 override the new values that was recently updated in last session of new build(Made from Unity 5.4.1). The problem is occurring in build upgrade scenario only. When a client build is updated with newer build from Unity 5.4.1. Thanks.
Comment
Your answer