45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
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"))
|
|
VFXCacheManager.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");
|
|
}
|
|
}
|
|
}
|