2025-02-10から1日間の記事一覧
概要 using System; using System.Reflection; using UnityEditor; using UnityEngine; internal static class Example { [MenuItem( "hoge/hoge" )] private static void Hoge() { const BindingFlags bindingAttrs = BindingFlags.Instance | BindingFlags…
概要 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 ); …
概要 using UnityEditor; internal static class Example { [MenuItem( "hoge/hoge" )] private static void Hoge() { PlayModeWindow.SetCustomRenderingResolution ( width: 480, height: 270, baseName: "480x270" ); } }