Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

HierarchyViewCellDescriptor

class in Unity.Hierarchy

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Provides a cell descriptor used to register a new HierarchyViewCell for a specific HierarchyNodeTypeHandler type in the Hierarchy.Hierarchy. Use this class to create custom UI to edit or display data for a node in a HierarchyViewCell that corresponds to a HierarchyViewColumn.

Properties

Property 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.
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.
UnbindCell Callback triggered when the HierarchyViewCell is unbound. The UIElements.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.
UserData Gets or sets custom user data associated with this descriptor.

Constructors

Constructor Description
HierarchyViewCellDescriptor Creates a new HierarchyViewCellDescriptor.

Public Methods

Method Description
ValidForColumn Validates that a HierarchyViewColumnDescriptor is valid for this cell descriptor.