HierarchyViewCellDescriptor
Provides a cell descriptor used to register a new HierarchyViewCell for a specific HierarchyNodeTypeHandler type in the Hierarchy. Use this class to create custom UI to edit or display data for a node in a HierarchyViewCell that corresponds to a HierarchyViewColumn.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Class
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyModule
public sealed class HierarchyViewCellDescriptor
Fields
Value | Description |
|---|---|
| BindCell | Callback triggered when the HierarchyViewCell is bound. |
| BindColumn | Callback triggered when the column containing a HierarchyViewCell generated by this descriptor is bound to the HierarchyView. |
| UnbindCell | Callback triggered when the HierarchyViewCell is unbound. The VisualElement content of the cell is automatically cleared. Use this callback to dispose of custom resources or unregister from events. |
| UnbindColumn | Callback triggered when the column containing a HierarchyViewCell generated by this descriptor is unbound from the HierarchyView. |
Constructors
Constructor | Description |
|---|---|
| HierarchyViewCellDescriptor(System.String,System.Type) | Creates a new HierarchyViewCellDescriptor. |
Properties
Property | Description |
|---|---|
| ClearCellContent | If true, the children of the HierarchyViewCell are deleted when the cell is unbound. |
| ColumnId | Gets the column identifier that this cell is registered to. |
| HandlerType | Gets the HierarchyNodeTypeHandler type used to manage the node of this cell. |
| UserData | Gets or sets custom user data associated with this descriptor. |
Methods
Method | Description |
|---|---|
| ValidForColumn | Validates that a HierarchyViewColumnDescriptor is valid for this cell descriptor. |