You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 lines
1.0 KiB

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