Class DebugUI.Container
Base class for "container" type widgets, although it can be used on its own (if a display name is set then it'll behave as a group with a header)
Implements
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public class DebugUI.Container : DebugUI.Widget, DebugUI.IContainer
Constructors
Container()
Constructor
Declaration
public Container()
Container(string)
Constructor for a container without header
Declaration
public Container(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The id of the container |
Container(string, ObservableList<Widget>)
Constructor.
Declaration
public Container(string displayName, ObservableList<DebugUI.Widget> children)
Parameters
Type | Name | Description |
---|---|---|
string | displayName | Display name of the container. |
ObservableList<DebugUI.Widget> | children | List of attached children. |
Properties
children
List of children.
Declaration
public ObservableList<DebugUI.Widget> children { get; }
Property Value
Type | Description |
---|---|
ObservableList<DebugUI.Widget> |
panel
Panel the container is attached to.
Declaration
public override DebugUI.Panel panel { get; }
Property Value
Type | Description |
---|---|
DebugUI.Panel |
Overrides
Methods
GetHashCode()
Returns the hash code of the widget.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hash code of the widget. |
Overrides
OnItemAdded(ObservableList<Widget>, ListChangedEventArgs<Widget>)
Method called when a children is added.
Declaration
protected virtual void OnItemAdded(ObservableList<DebugUI.Widget> sender, ListChangedEventArgs<DebugUI.Widget> e)
Parameters
Type | Name | Description |
---|---|---|
ObservableList<DebugUI.Widget> | sender | Sender widget. |
ListChangedEventArgs<DebugUI.Widget> | e | List of added children. |
OnItemRemoved(ObservableList<Widget>, ListChangedEventArgs<Widget>)
Method called when a children is removed.
Declaration
protected virtual void OnItemRemoved(ObservableList<DebugUI.Widget> sender, ListChangedEventArgs<DebugUI.Widget> e)
Parameters
Type | Name | Description |
---|---|---|
ObservableList<DebugUI.Widget> | sender | Sender widget. |
ListChangedEventArgs<DebugUI.Widget> | e | List of removed children. |