Skip to content

Instantly share code, notes, and snippets.

@terrehbyte
Created June 3, 2015 17:05
Show Gist options
  • Save terrehbyte/c0afaa47391227e8d7f5 to your computer and use it in GitHub Desktop.
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".
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