Class DebugUIHandlerIndirectToggle
DebugUIHandler for indirect toggle widget.
Inherited Members
Namespace: UnityEngine.Rendering.UI
Syntax
public class DebugUIHandlerIndirectToggle : DebugUIHandlerWidget
Fields
checkmarkImage
Checkmark image.
Declaration
public Image checkmarkImage
Field Value
| Type | Description |
|---|---|
| Image |
getter
Getter function for this indirect widget.
Declaration
public Func<int, bool> getter
Field Value
| Type | Description |
|---|---|
| Func<Int32, Boolean> |
nameLabel
Label of the widget.
Declaration
public Text nameLabel
Field Value
| Type | Description |
|---|---|
| Text |
setter
Setter function for this indirect widget.
Declaration
public Action<int, bool> setter
Field Value
| Type | Description |
|---|---|
| Action<Int32, Boolean> |
valueToggle
Toggle of the toggle field.
Declaration
public Toggle valueToggle
Field Value
| Type | Description |
|---|---|
| Toggle |
Methods
Init()
Initialize the indirect widget.
Declaration
public void Init()
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. |