Files
CartoonRPG/Library/PackageCache/com.unity.visualeffectgraph@2973a8ac1070/Editor/Utilities/pCache/BakeTool/PointCacheBakeTool.cs

41 lines
1.0 KiB
C#
Raw Normal View History

2025-06-05 22:59:18 +01:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UnityEditor.Experimental.VFX.Utility
{
partial class PointCacheBakeTool : EditorWindow
{
[MenuItem("Window/Visual Effects/Utilities/Point Cache Bake Tool", false, 3012)]
static void OpenWindow()
{
GetWindow<PointCacheBakeTool>();
}
public enum BakeMode
{
Texture,
Mesh
}
public BakeMode mode = BakeMode.Mesh;
private void OnGUI()
{
titleContent = Contents.title;
mode = (BakeMode)EditorGUILayout.EnumPopup(Contents.mode, mode);
switch (mode)
{
case BakeMode.Mesh: OnGUI_Mesh(); break;
case BakeMode.Texture: OnGUI_Texture(); break;
}
}
static partial class Contents
{
public static GUIContent title = new GUIContent("pCache Tool");
public static GUIContent mode = new GUIContent("Bake Mode");
}
}
}