public static void OpenWindow() { MidiTweak_Window window = (MidiTweak_Window)EditorWindow.GetWindow(typeof(MidiTweak_Window), false, "Midi Tweak"); window.minSize = new Vector2(650, 250); window.Show(); }
public override void OnInspectorGUI() { if (midiTweak.ConfigSettings.DebugMode) { DrawDefaultInspector(); } if (GUILayout.Button("Open Midi Tweak Window", GUILayout.MinHeight(50))) { MidiTweak_Window window = (MidiTweak_Window)EditorWindow.GetWindow(typeof(MidiTweak_Window), false, "Midi Tweak"); window.minSize = new Vector2(650, 250); window.Show(); window.Init(midiTweak); } }