Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- 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("截屏完成");
- }
- }
-
|