Created
June 3, 2015 17:05
-
-
Save terrehbyte/c0afaa47391227e8d7f5 to your computer and use it in GitHub Desktop.
This simple Editor script adds a menu item for resetting your current PlayerPrefs data. This script must be placed in a folder where its immediate or grandfather directories is called "Editor".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
public class PlayerPrefsEditor : MonoBehaviour | |
{ | |
[MenuItem ("Tools/Reset Player Prefs")] | |
static void PlayerPerfsReset() | |
{ | |
PlayerPrefs.DeleteAll(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment