驱蚊app
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

25 righe
561 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEditor;
  4. using UnityEngine;
  5. public class PlayerPrefsEditor : EditorWindow
  6. {
  7. [MenuItem("Tools/PlayerPrefsDeleteAll")]
  8. public static void DeleteAll()
  9. {
  10. PlayerPrefs.DeleteAll();
  11. PlayerPrefs.Save();
  12. }
  13. [MenuItem("Tools/游戏截屏")]
  14. public static void GameScreenCapture()
  15. {
  16. ScreenCapture.CaptureScreenshot(Application.streamingAssetsPath + "/SomeLevel.png");
  17. AssetDatabase.Refresh();
  18. Debug.Log("截屏完成");
  19. }
  20. }