1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace UnityEditor.VFX
- {
- class VFXDebugWindow : EditorWindow
- {
- [MenuItem("Window/Visual Effects/VFXEditor Debug Window", false, 3011, true)]
- public static void OpenWindow()
- {
- GetWindow<VFXDebugWindow>();
- }
- private void OnGUI()
- {
- titleContent = Contents.title;
- EditorGUILayout.LabelField("VFX Assets", EditorStyles.boldLabel);
- using (new GUILayout.HorizontalScope())
- {
- /*if (GUILayout.Button("Clear"))
- VFXCacheManager.Clear();*/
- if (GUILayout.Button("Recompile All"))
- VFXAssetManager.Build();
- }
- EditorGUILayout.Space();
- /*
- EditorGUILayout.LabelField("Run VFX Tests", EditorStyles.boldLabel);
- using (new GUILayout.HorizontalScope())
- {
- if (GUILayout.Button("GUI Tests"))
- Test.VFXGUITests.RunGUITests();
- }
- EditorGUILayout.Space();*/
- }
- static class Contents
- {
- public static GUIContent title = new GUIContent("VFX Debug");
- }
- }
- }
|