disabled | Boolean specifying if the controls inside the group should be disabled. |
Create a group of controls that can be disabled.
canJump = EditorGUILayout.Toggle ("Can Jump", canJump); // Disable the jumping height control if canJump is false: EditorGUI.BeginDisabledGroup (canJump == false); jumpHeight = EditorGUILayout.FloatField ("Jump Height", jumpHeight); EditorGUI.EndDisabledGroup ();