I’ve read that Unity saves player prefs to disk when the user quits the application. (I’m doing something for iOS, if that matters).
I would like to record data in PlayerPrefs, but if the user dies before “saving” (where i would call the PlayerPrefs.Save function manually), I want the data to be reverted to the last save position.
If I call PlayerPrefs.DeleteKey will that delete the key from the device itself, or just the most recent entry? That is, if PlayerPrefs.GetInt(“PlayerLevel”) = 5 when the app is turned on, and the player plays, I may make the level 6 or 7 or 8 as they level up, but if they die before they save, can I call PlayerPrefs.DeleteKey and then just re-load from what was saved prior?