using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEngine; public class PlayerPrefsEditor : EditorWindow { [MenuItem("Tools/PlayerPrefsDeleteAll")] public static void DeleteAll() { PlayerPrefs.DeleteAll(); PlayerPrefs.Save(); } [MenuItem("Tools/游戏截屏")] public static void GameScreenCapture() { ScreenCapture.CaptureScreenshot(Application.streamingAssetsPath + "/SomeLevel.png"); AssetDatabase.Refresh(); Debug.Log("截屏完成"); } }