XAssetMenus.cs 941 B

1234567891011121314151617181920212223242526272829303132
  1. using UnityEditor;
  2. namespace XGame.Editor.Asset.Tools
  3. {
  4. public static class XAssetMenus
  5. {
  6. [MenuItem("Tools/XGame/资源/检测贴图")]
  7. private static void VerifyTextureAssets()
  8. {
  9. var task = new TextureVerifyTask();
  10. task.Run();
  11. }
  12. [MenuItem("Tools/XGame/资源/检测i18n资源依赖")]
  13. private static void VerifyI18nAssets()
  14. {
  15. var task = new I18nAssetsReferencesTask();
  16. task.Run();
  17. }
  18. [MenuItem("Tools/XGame/资源/检测动态资源的预制依赖")]
  19. private static void FindPrefabReferences()
  20. {
  21. var task = new PrefabDependenciesTask();
  22. task.Run();
  23. }
  24. [MenuItem("Tools/XGame/资源/清理SpriteAtlas")]
  25. public static void ClearSpriteAtlases()
  26. {
  27. var task = new SpriteAtlasClearTask();
  28. task.Run();
  29. }
  30. }
  31. }