Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

HierarchyNodeMapUnmanaged<T0>

struct in Unity.Hierarchy

/

Implemented in:UnityEngine.HierarchyCoreModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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.