概要
using System; using UnityEditor; internal static class Example { [MenuItem( "hoge/hoge" )] private static void Hoge() { var type = Type.GetType( "UnityEditor.GameView,UnityEditor" ); var editorWindow = EditorWindow.GetWindow( type ); if ( editorWindow == null ) return; editorWindow.maximized = true; } }