void Present_SubWindow() { EditorGUILayout.BeginVertical(VerticalStyle); if (LocalConfig.Ins.FoldSubWindow = EditorGUILayout.Foldout(LocalConfig.Ins.FoldSubWindow, "窗口", true)) { if (GUILayout.Button("Shelf")) { ShelfEditor.ShowWindow(); } else if (GUILayout.Button("Prefs")) { PrefsWindow.ShowWindow(); } else if (GUILayout.Button("GUIStyle")) { GUIStyleWindow.ShowWindow(); } else if (GUILayout.Button("Template")) { TemplateSettingsWindow.ShowWindow(); } else if (GUILayout.Button("ColorPicker")) { ColorPickerWindow.ShowWindow(); } else if (GUILayout.Button("DebugOptions")) { ShowOptionWindow(); } else if (GUILayout.Button("Dependencies")) { DependencyWindow.ShowWindow(); } else if (GUILayout.Button("ParticleScaler")) { ParticleScalerWindow.ShowWindow(); } else if (GUILayout.Button("UnityTexture")) { UnityTextureWindow.ShowWindow(); } } EditorGUILayout.EndVertical(); }
public static void ShowWindow() { GUIStyleWindow w = (GUIStyleWindow)EditorWindow.GetWindow <GUIStyleWindow>(); w.Show(); }