Created
August 10, 2024 13:48
-
-
Save Gianfranco97/e2737b19228cd0411a61ab2b4e45371c to your computer and use it in GitHub Desktop.
Create a tool to reset the PlayerPrefs values on a Unity project
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 UnityEngine; | |
using UnityEditor; | |
[ExecuteInEditMode] | |
public class PlayerPrefsRemover : EditorWindow | |
{ | |
[MenuItem("Tools/Player Prefs Remover")] | |
public static void DeletePlayerPrefs() | |
{ | |
PlayerPrefs.DeleteAll(); | |
Debug.Log("Player Prefs Deleted!..."); | |
} | |
} |
Author
Gianfranco97
commented
Aug 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment