Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HierarchyViewModel

A hierarchy view model is a read-only filtering view of a HierarchyFlattened.
Read time 4 minutesLast updated 13 days ago

Definition

public sealed class HierarchyViewModel : IDisposable

Constructors

Properties

Property

Description

CountThe total number of nodes.
FilteringWhether the hierarchy view model is currently filtering nodes.
IsCreatedWhether this object is valid and uses memory.
this[]Gets the HierarchyNode at a specified index.
UpdateNeededWhether the hierarchy view model requires an update.
UpdatingWhether the hierarchy view model is currently updating.

Methods

Method

Description

AsReadOnlySpanReturns a read-only span of all hierarchy nodes in the view model.
BeginFlagsChangeBegins a batch of flags changes.
ClearFlagsClears the specified flags on the hierarchy node indices.
ClearFlagsRecursiveClears the specified flags recursively on the hierarchy nodes.
ContainsDetermines if a specified node is in the hierarchy view model.
DisposeDisposes this object and releases its memory.
DoesNotHaveAllFlagsGets whether or not all of the specified flags are not set on the hierarchy node.
DoesNotHaveAllFlagsCountGets the number of nodes that do not have all of the specified flags set.
DoesNotHaveAnyFlagsGets whether or not any of the specified flags are not set on the hierarchy node.
DoesNotHaveAnyFlagsCountGets the number of nodes that do not have any of the specified flags set.
EndFlagsChangeEnds a batch of flags changes.
EndFlagsChangeWithoutNotifyEnds a batch of flags changes without notifying listeners.
EnumerateNodesWithAllFlagsGets an enumerable of all hierarchy nodes that have all of the specified flags set.
EnumerateNodesWithAnyFlagsGets an enumerable of all hierarchy nodes that have any of the specified flags set.
EnumerateNodesWithoutAllFlagsGets an enumerable of all hierarchy nodes that do not have all of the specified flags set.
EnumerateNodesWithoutAnyFlagsGets an enumerable of all hierarchy nodes that do not have any of the specified flags set.
GetChildGets the child node at the specified index of a hierarchy node.
GetChildIndexGets the index of a hierarchy node in its parent's children list.
GetChildrenCountGets the number of child nodes that a hierarchy node has.
GetChildrenCountRecursiveGets the number of child nodes that a hierarchy node has, including children of children.
GetDepthDetermines the depth of a node.
GetEnumeratorGets the HierarchyNode enumerator.
GetFlagsGets all the flags set on a given hierarchy node.
GetIndicesWithAllFlagsGets the indices for all hierarchy nodes that have all of the specified flags set.
GetIndicesWithAnyFlagsGets the indices for all hierarchy nodes that have any of the specified flags set.
GetIndicesWithoutAllFlagsGets the indices of all hierarchy nodes that do not have all of the specified flags set.
GetIndicesWithoutAnyFlagsGets the indices of all hierarchy nodes that do not have any of the specified flags set.
GetNextSiblingGets the next sibling of a node.
GetNodesWithAllFlagsGets all hierarchy nodes that have all of the specified flags set.
GetNodesWithAnyFlagsGets all hierarchy nodes that have any of the specified flags set.
GetNodesWithoutAllFlagsGets all hierarchy nodes that do not have all of the specified flags set.
GetNodesWithoutAnyFlagsGets all hierarchy nodes that do not have any of the specified flags set.
GetParentGets the parent of a hierarchy node.
GetRootGets the root node of the hierarchy view model.
HasAllFlagsGets whether or not all of the specified flags are set on the hierarchy node.
HasAllFlagsCountGets the number of nodes that have all of the specified flags set.
HasAnyFlagsGets whether or not any of the specified flags are set on the hierarchy node.
HasAnyFlagsCountGets the number of nodes that have any of the specified flags set.
IndexOfGets the zero-based index of a specified node.
SetFlagsSets the specified flags on the hierarchy node indices.
SetFlagsRecursiveSets the specified flags recursively on the hierarchy nodes.
SetQuerySets the search query.
SetRootSets the root of the hierarchy view model.
ToggleFlagsToggles the specified flags on the hierarchy node indices.
ToggleFlagsRecursiveToggles the specified flags recursively on the hierarchy nodes.
UpdateUpdates the hierarchy view model and requests a rebuild of the list of HierarchyNode that filters the HierarchyFlattened.
UpdateIncrementalUpdates the hierarchy view model incrementally.
UpdateIncrementalTimedUpdates the hierarchy view model incrementally until a time limit is reached.

Events

Member

Description

FlagsChangedEvent that is invoked when flags on hierarchy nodes are changed.

Structs

Struct

Description

HierarchyViewModel.EnumeratorAn enumerator of HierarchyNode. Enumerates and filters items at the same time.

Delegates

Delegate

Description

HierarchyViewModel.FlagsChangedEventHandlerDelegate that is invoked when flags on hierarchy nodes are changed.