Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HierarchyNodeMapUnmanaged<T>

Represents a collection of HierarchyNode and values of type T with O(1) access time.
Read time 1 minuteLast updated 11 days ago

Definition

public struct HierarchyNodeMapUnmanaged<T> : IDisposable where T : unmanaged

Constructors

Properties

Property

Description

CapacityThe number of elements that can be contained in the HierarchyNodeMapUnmanaged<T> without resizing.
CountThe number of elements contained in the HierarchyNodeMapUnmanaged<T>.
IsCreatedWhether or not this object is valid and uses memory.
this[]Gets or sets the value associated with the specified HierarchyNode.

Methods

Method

Description

AddAdds the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged<T>.
AddNoResizeAdds the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged<T> without increasing capacity.
ClearRemoves all HierarchyNode and values from the HierarchyNodeMapUnmanaged<T>.
ContainsKeyDetermine whether or not the HierarchyNodeMapUnmanaged<T> contains the specified HierarchyNode.
DisposeDispose this object and release its memory.
RemoveRemoves the value with the specified HierarchyNode from the HierarchyNodeMapUnmanaged<T>.
ReserveReserve enough memory to contain the specified number of elements.
TryAddAttempts to add the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged<T>.
TryAddNoResizeAttempts to add the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged<T> without increasing capacity.
TryGetValueGets the value associated with the specified HierarchyNode.