驱蚊app
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ů.
 
 
 
 
 

25 řádky
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. }