Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

BindCellCallback triggered when the HierarchyViewCell is bound.
BindColumnCallback triggered when the column containing a HierarchyViewCell generated by this descriptor is bound to the HierarchyView.
UnbindCellCallback 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.
UnbindColumnCallback triggered when the column containing a HierarchyViewCell generated by this descriptor is unbound from the HierarchyView.

Constructors

Properties

Property

Description

ClearCellContentIf true, the children of the HierarchyViewCell are deleted when the cell is unbound.
ColumnIdGets the column identifier that this cell is registered to.
HandlerTypeGets the HierarchyNodeTypeHandler type used to manage the node of this cell.
UserDataGets or sets custom user data associated with this descriptor.

Methods

Method

Description

ValidForColumnValidates that a HierarchyViewColumnDescriptor is valid for this cell descriptor.