Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HierarchyView

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

Definition

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

Constructors

Constructor

Description

HierarchyView()Creates a new instance of the HierarchyView.

Properties

Property

Description

FilterGets or sets the filter used to display the Hierarchy.
FilteringWhether the HierarchyView is currently filtering nodes.
FlattenedGets the underlying HierarchyFlattened of this HierarchyView.
SourceGets the source hierarchy used to populate the HierarchyView. Use HierarchyView.SetSourceHierarchy to change it.
StyleContainerGets the VisualElement used as the container for the styles and stylesheets of the HierarchyView.
UpdateNeededWhether the HierarchyView requires an update.
UpdateProgressThe current progress of the hierarchy view update.
UpdatingWhether the HierarchyView is currently updating.
ViewModelGets the 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, expanding their ancestors and scrolling 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 a HierarchyViewState is passed, all the columns default order, width and visibility will be overridden by the viewState.
SetColumnsCreates columns according to a list of columns specification and a potential HierarchyViewState.
SetSelectionSets the current selection to the specified nodes, making all other nodes unselected.
SetSourceHierarchySets the source hierarchy used to populate the HierarchyView.
SetStateUpdates the HierarchyView with a new ViewState.
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, allowing customization of the view item.
FlagsChangedRaised when flags on HierarchyNode instances are changed.
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, allowing cleanup of the view item.

Delegates

Inheritance

Inherited Members