HierarchyViewItem
Represents a UI element that displays a hierarchy item in a HierarchyView.
Read time 8 minutesLast updated 13 days ago
Definition
- Type: Class
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyModule
- Inherits from: VisualElement
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle
public sealed class HierarchyViewItem : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle
Properties
Property | Description |
|---|---|
| Handler | Gets the HierarchyNodeTypeHandler currently associated with this HierarchyViewItem. |
| Icon | Gets 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. |
| LeftCustomContainer | Gets the left-aligned VisualElement container to the right of the HierarchyViewItem.Name. |
| Name | Gets the Label that displays the name of the item. |
| NavigateIntoButton | Gets the Button used to navigate into a node. This button is typically displayed as an arrow button. |
| Node | Gets the HierarchyNode bound to this HierarchyViewItem. This value is HierarchyNode.Null when HierarchyNodeTypeHandler.OnUnbindItem executes. |
| NodeType | Gets the HierarchyNodeType of the HierarchyNode bound to this HierarchyViewItem. |
| OverlayIcon | Gets the VisualElement that represents an icon that overlays over the icon of the item. This element is hidden by default. |
| OverrideBarContainer | Gets the VisualElement that represents the override bar at the left of the item. |
| RightCustomContainer | Gets the right-aligned VisualElement container on the right side of this HierarchyViewItem. |
| RowContainer | Gets the VisualElement that represents the entire row container of this HierarchyViewItem. |
| Toggle | Gets the Toggle used to expand or collapse the item. |
| View | Gets the HierarchyView currently associated with this HierarchyViewItem. |
Methods
Method | Description |
|---|---|
| BeginRename | Starts the rename operation on the HierarchyViewItem.Name of this HierarchyViewItem, if the node supports renaming. |