- Home /
Question by
LK84 · Sep 23, 2016 at 09:21 AM ·
buildplayerprefsupdates
Is it possible to check if this is first start of the game after update?
Hi, Im having some trouble with some old PlayerPrefs values from earlier version, so I want to delete the PlayerPrefs using PlayerPrefs.DeleteAll
every time the user has installed a new update of my game. From the second start after the update I don't want to have the PlayerPrefs deleted any more. Any way to achieve this?
Comment
Define a PlayerPrefs field to contain your version number. If the field doesn't exist or isn't set to the current version, delete the PlayerPrefs, then save the version number.
Your answer
![](https://koobas.hobune.stream/wayback/20220612093330im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Custom .assets files in the built "Project"_Data folder 0 Answers
Playtest Reports 0 Answers
do playerprefs work with webgl app? 1 Answer
Does Android delete PlayerPrefs when Updating the App? 2 Answers