VFXDebugWindow.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace UnityEditor.VFX
  5. {
  6. class VFXDebugWindow : EditorWindow
  7. {
  8. [MenuItem("Window/Visual Effects/VFXEditor Debug Window", false, 3011, true)]
  9. public static void OpenWindow()
  10. {
  11. GetWindow<VFXDebugWindow>();
  12. }
  13. private void OnGUI()
  14. {
  15. titleContent = Contents.title;
  16. EditorGUILayout.LabelField("VFX Assets", EditorStyles.boldLabel);
  17. using (new GUILayout.HorizontalScope())
  18. {
  19. /*if (GUILayout.Button("Clear"))
  20. VFXCacheManager.Clear();*/
  21. if (GUILayout.Button("Recompile All"))
  22. VFXAssetManager.Build();
  23. }
  24. EditorGUILayout.Space();
  25. /*
  26. EditorGUILayout.LabelField("Run VFX Tests", EditorStyles.boldLabel);
  27. using (new GUILayout.HorizontalScope())
  28. {
  29. if (GUILayout.Button("GUI Tests"))
  30. Test.VFXGUITests.RunGUITests();
  31. }
  32. EditorGUILayout.Space();*/
  33. }
  34. static class Contents
  35. {
  36. public static GUIContent title = new GUIContent("VFX Debug");
  37. }
  38. }
  39. }