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)
Inherited Members
Namespace: UnityEngine.Rendering
Syntax
public class Container : DebugUI.Widget, DebugUI.IContainer
Constructors
Container()
Constructor
Declaration
public Container()
Container(String, ObservableList<DebugUI.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> |
Implements
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 |
---|---|
Int32 | Hash code of the widget. |
Overrides
OnItemAdded(ObservableList<DebugUI.Widget>, ListChangedEventArgs<DebugUI.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<DebugUI.Widget>, ListChangedEventArgs<DebugUI.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. |