HierarchyViewModel

class in Unity.Hierarchy

/

Implemented in:UnityEngine.HierarchyCoreModule

Description

A hierarchy view model is a read-only filtering view of a HierarchyFlattened.

Properties

Count The total number of nodes.
Hierarchy Accesses the Hierarchy.
HierarchyFlattened Accesses the HierarchyFlattened.
IsCreated Whether this object is valid and uses memory.
this[int] Gets the HierarchyNode at a specified index.
UpdateNeeded Whether the hierarchy view model requires an update.
Updating Whether the hierarchy view model is currently updating.

Constructors

HierarchyViewModel Creates a new HierarchyViewModel from a HierarchyFlattened.

Public Methods

Contains Determines if a specified node is in the hierarchy view model.
Dispose Disposes this object and releases its memory.
GetChildrenCount Gets the number of child nodes that a hierarchy node has.
GetDepth Determines the depth of a node.
GetEnumerator Gets the HierarchyNode enumerator.
GetExpanded Gets the expanded state of a node.
GetNextSibling Gets the next sibling of a node.
GetParent Gets the parent of a hierarchy node.
GetSelected Gets the selected state of a node.
IndexOf Gets the zero-based index of a specified node.
SetExpanded Sets the expanded state of a node.
SetQuery Sets the search query.
SetSelected Sets the selected state of a node.
Update Updates the hierarchy view model and requests a rebuild of the list of HierarchyNode that filters the HierarchyFlattened.
UpdateIncremental Updates the hierarchy view model incrementally.
UpdateIncrementalTimed Updates the hierarchy view model incrementally until a time limit is reached.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961