Skip to content

Instantly share code, notes, and snippets.

@Gianfranco97
Created August 10, 2024 13:48
Show Gist options
  • Save Gianfranco97/e2737b19228cd0411a61ab2b4e45371c to your computer and use it in GitHub Desktop.
Save Gianfranco97/e2737b19228cd0411a61ab2b4e45371c to your computer and use it in GitHub Desktop.
Create a tool to reset the PlayerPrefs values on a Unity project
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!...");
}
}
@Gianfranco97
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment