Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HierarchyViewColumnDescriptor

Provides a column descriptor used to register a new column in the HierarchyView and to control the display and customization of this column.
Read time 2 minutesLast updated 10 days ago

Definition

  • Type: Class
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyModule
public sealed class HierarchyViewColumnDescriptor

Fields

Value

Description

BindColumnCallback triggered when the column is built and shown in the HierarchyView.
BindHeaderCallback that binds a custom header.
DestroyHeaderCallback triggered when the window is closed.
MakeHeaderCallback that creates a custom header. If null, the default header displays both the icon and text of the Name field.
UnbindColumnCallback triggered when the column is about to be destroyed.
UnbindHeaderCallback triggered when the header is about to be destroyed or after domain reload.

Constructors

Properties

Property

Description

DefaultPriorityGets or sets the priority used to sort column order. A priority of 0 corresponds to the Name column in the Hierarchy. A negative priority places the column to the left of the Name column. A positive priority places the column to the right of the default Name column.
DefaultVisibilityGets or sets whether the column is initially visible.
DefaultWidthGets or sets the default width when first instantiating the column. If you set it to a negative value, the column is assigned an arbitrary width.
IconGets or sets the icon displayed in the header of the column.
IdGets the column identifier. HierarchyViewCellDescriptor instances use this identifier to register themselves with the column.
TitleGets or sets the display name of the column. If null, the header is empty unless it contains an icon.
TooltipGets or sets the tooltip shown when the user hovers over the header of this column.
UserDataGets or sets user data associated with this descriptor.