Class DebugUI.Widget
Base class for all debug UI widgets.
Namespace: UnityEngine.Rendering
Syntax
public abstract class Widget
Fields
isHiddenCallback
Optional delegate that can be used to conditionally hide widgets at runtime (e.g. due to state of other widgets).
Declaration
public Func<bool> isHiddenCallback
Field Value
Type | Description |
---|---|
Func<Boolean> |
m_Panel
Panels containing the widget.
Declaration
protected DebugUI.Panel m_Panel
Field Value
Type | Description |
---|---|
DebugUI.Panel |
m_Parent
Parent container.
Declaration
protected DebugUI.IContainer m_Parent
Field Value
Type | Description |
---|---|
DebugUI.IContainer |
Properties
displayName
Display name.
Declaration
public string displayName { get; set; }
Property Value
Type | Description |
---|---|
String |
flags
Flags for the widget.
Declaration
public DebugUI.Flags flags { get; set; }
Property Value
Type | Description |
---|---|
DebugUI.Flags |
isEditorOnly
True if the widget is Editor only.
Declaration
public bool isEditorOnly { get; }
Property Value
Type | Description |
---|---|
Boolean |
isHidden
If isHiddenCallback has been set and returns true, the widget is hidden from the UI.
Declaration
public bool isHidden { get; }
Property Value
Type | Description |
---|---|
Boolean |
isInactiveInEditor
True if the widget is inactive in the editor (i.e. widget is runtime only and the application is not 'Playing').
Declaration
public bool isInactiveInEditor { get; }
Property Value
Type | Description |
---|---|
Boolean |
isRuntimeOnly
True if the widget is Runtime only.
Declaration
public bool isRuntimeOnly { get; }
Property Value
Type | Description |
---|---|
Boolean |
nameAndTooltip
Helper setter to allow more compact initialization of widgets.
Declaration
public DebugUI.Widget.NameAndTooltip nameAndTooltip { set; }
Property Value
Type | Description |
---|---|
DebugUI.Widget.NameAndTooltip |
panel
Panels containing the widget.
Declaration
public virtual DebugUI.Panel panel { get; }
Property Value
Type | Description |
---|---|
DebugUI.Panel |
parent
Parent container.
Declaration
public virtual DebugUI.IContainer parent { get; }
Property Value
Type | Description |
---|---|
DebugUI.IContainer |
queryPath
Path of the widget.
Declaration
public string queryPath { get; }
Property Value
Type | Description |
---|---|
String |
tooltip
Tooltip.
Declaration
public string tooltip { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
GetHashCode()
Returns the hash code of the widget.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code of the widget. |