- Home /
Deleting PlayerPrefs Data
Hey there,
the Question is about Playerprefs data thats been written to the registry, and how to handle it in Testing a Prototype.
For example, you have 3 chapters, and if a chapter has been finisched you set an int like:
PlayerPrefs.SetInt("Chapter2Unlocked")
What should I do to reset these Values, can I simply delete them in the registry,without causing problems, or is it better to use PlayerPrefs.DeleteAll? Iam asking cause PlayerPrefs.DeleteAll should used with caution, and moving Unity gamedata in Explorer or Finder is also a bad idea.
Answer by duck · Jan 05, 2011 at 10:11 PM
PlayerPrefs.DeleteAll will only delete the prefs associated with that particular project (for web builds, it's linked to the webplayer's URL), so it's fine to use as long as you don't mind losing all the prefs for this particular project.
It's perfect for a task which is similar to resetting your game to its initial "never played before" state.
Your answer
Follow this Question
Related Questions
Storing persistent data 1 Answer
Secure PlayerPrefs using hash signature 0 Answers
Making a less complicated save system. 2 Answers
Delete certain saved data 1 Answer
Help with RPG 2 Answers