Files
CartoonRPG/Library/PackageCache/com.unity.visualeffectgraph@2973a8ac1070/Editor/Utils/VFXDebugWindow.cs
Caleb Sandford deQuincey 02c4b5ab66 Adding in new packages
2025-06-05 22:59:18 +01:00

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"))
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");
}
}
}