Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HierarchyViewItem

Represents a UI element that displays a hierarchy item in a HierarchyView.
Read time 9 minutesLast updated 12 days ago

Definition

public sealed class HierarchyViewItem : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle

Properties

Property

Description

HandlerGets the HierarchyNodeTypeHandler currently associated with this HierarchyViewItem.
IconGets the VisualElement that displays the icon of the item. Add a USS class to this element to display a custom icon for the item type.
LeftCustomContainerGets the left-aligned VisualElement container to the right of the HierarchyViewItem.Name.
NameGets the Label that displays the name of the item.
NavigateIntoButtonGets the Button used to navigate into a node. This button is typically displayed as an arrow button.
NodeGets the HierarchyNode bound to this HierarchyViewItem. This value is HierarchyNode.Null when HierarchyNodeTypeHandler.OnUnbindItem executes.
NodeTypeGets the HierarchyNodeType of the HierarchyNode bound to this HierarchyViewItem.
OverlayIconGets the VisualElement that represents an icon that overlays over the icon of the item. This element is hidden by default.
OverrideBarContainerGets the VisualElement that represents the override bar at the left of the item.
RightCustomContainerGets the right-aligned VisualElement container on the right side of this HierarchyViewItem.
RowContainerGets the VisualElement that represents the entire row container of this HierarchyViewItem.
ToggleGets the Toggle used to expand or collapse the item.
ViewGets the HierarchyView currently associated with this HierarchyViewItem.

Methods

Method

Description

BeginRenameStarts the rename operation on the HierarchyViewItem.Name of this HierarchyViewItem, if the node supports renaming.

Inheritance

Inherited Members