LanguageEnglish
  • C#

HierarchyNodeMapUnmanaged<T0>

struct in Unity.Hierarchy

/

Implemented in:UnityEngine.HierarchyCoreModule

Description

Represents a collection of HierarchyNode and values of type T with O(1) access time.

Properties

Capacity The number of elements that can be contained in the HierarchyNodeMapUnmanaged_1 without resizing.
Count The number of elements contained in the HierarchyNodeMapUnmanaged_1.
IsCreated Whether or not this object is valid and uses memory.
this[HierarchyNode] Gets or sets the value associated with the specified HierarchyNode.

Constructors

HierarchyNodeMapUnmanaged_1 Constructs a new HierarchyNodeMapUnmanaged_1.

Public Methods

Add Adds the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged_1.
AddNoResize Adds the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged_1 without increasing capacity.
Clear Removes all HierarchyNode and values from the HierarchyNodeMapUnmanaged_1.
ContainsKey Determine whether or not the HierarchyNodeMapUnmanaged_1 contains the specified HierarchyNode.
Dispose Dispose this object and release its memory.
Remove Removes the value with the specified HierarchyNode from the HierarchyNodeMapUnmanaged_1.
Reserve Reserve enough memory to contain the specified number of elements.
TryAdd Attempts to add the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged_1.
TryAddNoResize Attempts to add the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged_1 without increasing capacity.
TryGetValue Gets the value associated with the specified HierarchyNode.

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