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

HierarchyViewColumnDescriptor

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 column descriptor used to register a new column in the HierarchyView and to control the display and customization of this column.

Properties

Property Description
BindColumn Callback triggered when the column is built and shown in the HierarchyView.
BindHeader Callback that binds a custom header.
DefaultPriority Gets or sets the priority used to sort column order. A priority of 0 corresponds to the Name column in the Hierarchy.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.
DefaultVisibility Gets or sets whether the column is initially visible.
DefaultWidth Gets 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.
DestroyHeader Callback triggered when the window is closed.
Icon Gets or sets the icon displayed in the header of the column.
Id Gets the column identifier. HierarchyViewCellDescriptor instances use this identifier to register themselves with the column.
MakeHeader Callback that creates a custom header. If null, the default header displays both the icon and text of the Name field.
Title Gets or sets the display name of the column. If null, the header is empty unless it contains an icon.
Tooltip Gets or sets the tooltip shown when the user hovers over the header of this column.
UnbindColumn Callback triggered when the column is about to be destroyed.
UnbindHeader Callback triggered when the header is about to be destroyed or after domain reload.
UserData Gets or sets user data associated with this descriptor.

Constructors

Constructor Description
HierarchyViewColumnDescriptor Creates a new HierarchyViewColumnDescriptor.