GUILayout.Togglestatic function Toggle (value : boolean, image : Texture, params options : GUILayoutOption[]) : booleanstatic function Toggle (value : boolean, text : String, params options : GUILayoutOption[]) : booleanstatic function Toggle (value : boolean, content : GUIContent, params options : GUILayoutOption[]) : booleanstatic function Toggle (value : boolean, image : Texture, style : GUIStyle, params options : GUILayoutOption[]) : booleanstatic function Toggle (value : boolean, text : String, style : GUIStyle, params options : GUILayoutOption[]) : booleanstatic function Toggle (value : boolean, content : GUIContent, style : GUIStyle, params options : GUILayoutOption[]) : booleanParameters
Returnsboolean - The new value of the button. DescriptionMake an on/off toggle button.
JavaScript
// Draws 2 toggle controls, one with a text, the other with an image. using UnityEngine; import UnityEngine
|

