Class DebugUIHandlerToggle
DebugUIHandler for toggle widget.
Inheritance
DebugUIHandlerToggle
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Rendering.UI
Syntax
public class DebugUIHandlerToggle : DebugUIHandlerWidget
Fields
checkmarkImage
Checkermark image.
Declaration
public Image checkmarkImage
Field Value
Type | Description |
---|---|
Image |
m_Field
Declaration
protected DebugUI.BoolField m_Field
Field Value
Type | Description |
---|---|
DebugUI.BoolField |
nameLabel
Name of the toggle.
Declaration
public Text nameLabel
Field Value
Type | Description |
---|---|
Text |
valueToggle
Value of the toggle.
Declaration
public Toggle valueToggle
Field Value
Type | Description |
---|---|
Toggle |
Methods
OnAction()
OnAction implementation.
Declaration
public override void OnAction()
Overrides
OnDeselection()
OnDeselection implementation.
Declaration
public override void OnDeselection()
Overrides
OnSelection(Boolean, DebugUIHandlerWidget)
OnSelection implementation.
Declaration
public override bool OnSelection(bool fromNext, DebugUIHandlerWidget previous)
Parameters
Type | Name | Description |
---|---|---|
Boolean | fromNext | True if the selection wrapped around. |
DebugUIHandlerWidget | previous | Previous widget. |
Returns
Type | Description |
---|---|
Boolean | True if the selection is allowed. |
Overrides
UpdateValueLabel()
Update the label.
Declaration
protected virtual void UpdateValueLabel()