コード例 #1
0
        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();
        }
コード例 #2
0
        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);
            }
        }