Skip to content

Instantly share code, notes, and snippets.

@baba-s
Created December 8, 2013 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baba-s/7855993 to your computer and use it in GitHub Desktop.
Save baba-s/7855993 to your computer and use it in GitHub Desktop.
using UnityEditor;
using UnityEngine;
/// <summary>
/// PlayerPrefsを削除するクラス
/// </summary>
public class DeletePlayerPrefs : ScriptableObject
{
/// <summary>
/// PlayerPrefsをすべて削除する
/// </summary>
[MenuItem("Tools/Delete Player Prefs")]
private static void Delete()
{
PlayerPrefs.DeleteAll();
Debug.Log("Delete all PlayerPrefs.");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment