Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HierarchyView

UI element control that displays a Hierarchy.
Read time 11 minutesLast updated 9 days ago

Definition

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

Constructors

Constructor

Description

HierarchyView()Creates a new hierarchy view UI element.

Properties

Property

Description

FilterThe filter applied when displaying the Hierarchy.
FilteringWhether the HierarchyView is filtering nodes.
FlattenedThe underlying HierarchyFlattened of this HierarchyView.
SourceThe source Hierarchy used to populate this HierarchyView. Use HierarchyView.SetSourceHierarchy to change it.
StyleContainerThe container VisualElement for the styles and stylesheets of this HierarchyView.
UpdateNeededWhether the HierarchyView requires an update.
UpdateProgressThe current progress of the hierarchy view update.
UpdatingWhether the HierarchyView is updating.
ViewModelThe underlying HierarchyViewModel of this HierarchyView.

Methods

Method

Description

CollapseCollapses the specified nodes.
CollapseAllCollapses all HierarchyNodes in the Hierarchy.
CollapseRecursiveCollapses the specified nodes and all their ancestors or descendants recursively.
DeselectClears the selection state of the specified nodes.
DeselectAllClears the current selection, making all nodes unselected.
DeselectRecursiveClears the selection state of the specified nodes and all their ancestors or descendants recursively.
DisposeReleases the resources used by the HierarchyView.
ExpandExpands the specified nodes.
ExpandAllExpands all HierarchyNodes in the Hierarchy.
ExpandRecursiveExpands the specified nodes and all their ancestors or descendants recursively.
FrameFrames the specified nodes. This expands each node's ancestors and scrolls to the first node.
GetStateGets the current viewstate of the HierarchyView.
HideHides the specified nodes.
HideAllHides all HierarchyNodes in the Hierarchy.
HideRecursiveHides the specified nodes and all their ancestors or descendants recursively.
IsCollapsedDetermines if the specified node is collapsed.
IsExpandedDetermines if the specified node is expanded.
IsHiddenDetermines if the specified node is hidden.
IsSelectedDetermines if the specified node is selected.
IsSelectedOrAnyAncestorSelectedDetermines if the specified node, or any of its ancestors, is selected.
IsShownDetermines if the specified node is shown.
SelectSelects the specified HierarchyNodes.
SelectAllSelects all nodes in the hierarchy.
SelectRecursiveSelects the specified nodes and all their ancestors or descendants recursively.
SetColumnDescriptorsCreates a set of columns from a list of columns and cell descriptors. If you pass a HierarchyViewState, it overrides the default order, width, and visibility of every column.
SetColumnsCreates columns according to a list of column specifications and an optional HierarchyViewState.
SetSelectionSets the current selection to the specified nodes and deselects all other nodes.
SetSourceHierarchySets the source hierarchy used to populate the HierarchyView.
SetStateUpdates the HierarchyView with a new HierarchyViewState.
ShowShows the specified nodes.
ShowAllShows all HierarchyNodes in the Hierarchy.
ShowRecursiveShows the specified nodes and all their ancestors or descendants recursively.
ToggleSelectedToggles the selection state of the specified nodes.
ToggleSelectedRecursiveToggles the selection state of the specified nodes and all their ancestors or descendants recursively.
ToggleSelectionToggles the selection state of the current selection.
UpdateUpdates the HierarchyView displayed content.
UpdateIncrementalIncrementally updates the HierarchyView displayed content.
UpdateIncrementalTimedIncrementally updates the HierarchyView displayed content until the time limit is reached.

Events

Member

Description

BindViewItemRaised when a HierarchyViewItem is bound to a HierarchyView. Use this event to customize the view item.
FlagsChangedRaised when HierarchyNode flags change.
GetTooltipCustomize the tooltip displayed when the mouse hovers the node name label.
PopulateContextMenuRaised when a right click is handled on a HierarchyNode or on the background of the view.
SourceHierarchyChangedRaised when the source hierarchy changes.
SourceHierarchyChangingRaised when the source hierarchy is about to change.
UnbindViewItemRaised when a HierarchyViewItem is unbound from a HierarchyView. Use this event to clean up the view item.

Delegates

Inheritance

Inherited Members