Class DebugUIHandlerWidget
Base class for handling UI actions for widgets.
Namespace: UnityEngine.Rendering.UI
Syntax
public class DebugUIHandlerWidget : MonoBehaviour
Fields
colorDefault
Default widget color.
Declaration
public Color colorDefault
Field Value
Type | Description |
---|---|
Color |
colorSelected
Selected widget color.
Declaration
public Color colorSelected
Field Value
Type | Description |
---|---|
Color |
m_Widget
Associated widget.
Declaration
protected DebugUI.Widget m_Widget
Field Value
Type | Description |
---|---|
DebugUI.Widget |
Properties
nextUIHandler
Next widget UI Handler.
Declaration
public DebugUIHandlerWidget nextUIHandler { get; set; }
Property Value
Type | Description |
---|---|
DebugUIHandlerWidget |
parentUIHandler
Parent widget UI Handler.
Declaration
public DebugUIHandlerWidget parentUIHandler { get; set; }
Property Value
Type | Description |
---|---|
DebugUIHandlerWidget |
previousUIHandler
Previous widget UI Handler.
Declaration
public DebugUIHandlerWidget previousUIHandler { get; set; }
Property Value
Type | Description |
---|---|
DebugUIHandlerWidget |
Methods
CastWidget<T>()
Casts the widget to the correct type.
Declaration
protected T CastWidget<T>()
where T : DebugUI.Widget
Returns
Type | Description |
---|---|
T | Properly cast reference to the widget. |
Type Parameters
Name | Description |
---|---|
T | Type of the widget. |
Next()
Next implementation.
Declaration
public virtual DebugUIHandlerWidget Next()
Returns
Type | Description |
---|---|
DebugUIHandlerWidget | Next widget UI handler, parent if there is none. |
OnAction()
OnAction implementation.
Declaration
public virtual void OnAction()
OnDecrement(Boolean)
OnDecrement implementation.
Declaration
public virtual void OnDecrement(bool fast)
Parameters
Type | Name | Description |
---|---|---|
Boolean | fast | Trye if decrementing fast. |
OnDeselection()
OnDeselection implementation.
Declaration
public virtual void OnDeselection()
OnEnable()
OnEnable implementation.
Declaration
protected virtual void OnEnable()
OnIncrement(Boolean)
OnIncrement implementation.
Declaration
public virtual void OnIncrement(bool fast)
Parameters
Type | Name | Description |
---|---|---|
Boolean | fast | True if incrementing fast. |
OnSelection(Boolean, DebugUIHandlerWidget)
OnSelection implementation.
Declaration
public virtual 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. |
Previous()
Previous implementation.
Declaration
public virtual DebugUIHandlerWidget Previous()
Returns
Type | Description |
---|---|
DebugUIHandlerWidget | Previous widget UI handler, parent if there is none. |