17 lines
368 B
C#
17 lines
368 B
C#
|
|
using UnityEditor;
|
|||
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
namespace Editor
|
|||
|
|
{
|
|||
|
|
public static class PlayerPrefsCleaner
|
|||
|
|
{
|
|||
|
|
[MenuItem("Tools/清空PlayerPrefs数据")]
|
|||
|
|
public static void ClearPlayerPrefs()
|
|||
|
|
{
|
|||
|
|
PlayerPrefs.DeleteAll();
|
|||
|
|
PlayerPrefs.Save();
|
|||
|
|
Debug.Log("所有PlayerPrefs数据已清空!");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|