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