EditorGUI.Toggle Manual     Reference     Scripting  
Scripting > Editor Classes > EditorGUI
EditorGUI.Toggle

static function Toggle (position : Rect, value : bool) : bool

static function Toggle (position : Rect, label : string, value : bool) : bool

static function Toggle (position : Rect, label : GUIContent, value : bool) : bool

Parameters

NameDescription
position Rectangle on the screen to use for the toggle.
label Optional label in front of the toggle.
value The shown state of the toggle.

Returns

bool - The selected state of the toggle.

Description

Make a toggle.