You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 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("截屏完成");
- }
- }
-
|