Question about PlayerPrefs


i noticed that PlayerPrefs doesnt reset when i play the game from the editor.

does it reset when i play the game from a mobile device?


All PlayerPrefs values will reset to 0 only when you make a new project or each time you build the program. So to answer your question yes it will reset when you put it on your phone but not anytime after that.

i don’t think they ever reset. it saves the info to a file, and stays that way until changed, or it deletes the file when the app is uninstalled.

to reset their score, if they die and restart for example, just overwrite the value back to 0.

I believe that it doesn’t reset.
Not quite sure about using player prefs on an Android/iOS game but i am sure that you can “reset” it by seting the pref you want to be zero.