概要
using UnityEditor; using UnityEngine; public sealed class Example : EditorWindow { [MenuItem( "Tools/Open" )] private static void Open() { GetWindow<Example>(); } private void OnGUI() { GUILayout.Button( "ボタン" ); using ( new EditorGUI.DisabledScope( true ) ) { GUILayout.Button( "ボタン" ); } GUILayout.Button( "ボタン" ); } }