ソースコード
using UnityEditor; public static class Example { public static EditorWindow GetGameView() { var assembly = typeof( EditorWindow ).Assembly; var type = assembly.GetType( "UnityEditor.GameView" ); var gameview = EditorWindow.GetWindow( type ); return gameview; } }
使い方
var view = Example.GetGameView();