Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HierarchyViewModel

A hierarchy view model is a read-only filtering view of a HierarchyViewModel.HierarchyFlattened.
Read time 3 minutesLast updated a month ago

Definition

public sealed class HierarchyViewModel : IDisposable

Constructors

Properties

Property

Description

CountThe total number of nodes.
HierarchyAccesses the HierarchyViewModel.Hierarchy.
HierarchyFlattenedAccesses the HierarchyViewModel.HierarchyFlattened.
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

ClearFlagsClears the specified flags on the hierarchy node indices.
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.
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.
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.
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.
SetQuerySets the search query.
ToggleFlagsToggles the specified flags on the hierarchy node indices.
UpdateUpdates the hierarchy view model and requests a rebuild of the list of HierarchyNode that filters the HierarchyViewModel.HierarchyFlattened.
UpdateIncrementalUpdates the hierarchy view model incrementally.
UpdateIncrementalTimedUpdates the hierarchy view model incrementally until a time limit is reached.

Structs

Struct

Description

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