Files
2025TapTapGameJam/Assets/Editor/PlayerPrefsCleaner.cs

17 lines
368 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using UnityEditor;
using UnityEngine;
namespace Editor
{
public static class PlayerPrefsCleaner
{
[MenuItem("Tools/清空PlayerPrefs数据")]
public static void ClearPlayerPrefs()
{
PlayerPrefs.DeleteAll();
PlayerPrefs.Save();
Debug.Log("所有PlayerPrefs数据已清空");
}
}
}