以下の内容はhttps://baba-s.hatenablog.com/entry/2025/02/10/114831より取得しました。


【Unity】スクリプトから Game ビューを最大化する方法

概要

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;
    }
}



以上の内容はhttps://baba-s.hatenablog.com/entry/2025/02/10/114831より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14