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

Cell Descriptor used to register a new Cell for a specific Node Type in the Hierarchy. Allows user to create custom UI to edit or display data of this Node in the Cell corresponding to a specific Column.

Properties

Property Description
BindCell Callback triggered when the cell is bound.
BindColumn Callback triggered when the column containing Cell generated by this descriptor is bound to the view.
ClearCellContent If true, the children of the HierarchyViewCell will be deleted when the cell is unbound.
ColumnId ColumnId used to register the Cell to.
HandlerType NodeHandler type used to manage the Node of this Cell.
UnbindCell Callback triggered when the cell is unbound. The VisualElement content of the Cell will automatically be cleared out. User should only Dispose of custom resources or unregister from events.
UnbindColumn Callback triggered when the column containing Cell generated by this descriptor is unbound from the view.
UserData User data

Constructors

Constructor Description
HierarchyViewCellDescriptor Create a new Cell Descriptor.

Public Methods

Method Description
ValidForColumn Validate that a Column Descriptor is valid for this Cell Descriptor.