Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

ReadOnly

struct in Unity.Collections.LowLevel.Unsafe

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

A read-only alias for the value of a UnsafeParallelHashMap. Does not have its own allocated storage.

Properties

Property Description
Capacity The number of key-value pairs that fit in the current allocation.
IsCreated Whether this hash map has been allocated (and not yet deallocated).
IsEmpty Whether this hash map is empty.

Public Methods

Method Description
ContainsKey Returns true if a given key is present in this hash map.
Count The current number of key-value pairs in this hash map.
GetEnumerator Returns an enumerator over the key-value pairs of this hash map.
GetKeyArray Returns an array with a copy of all this hash map's keys (in no particular order).
GetKeyValueArrays Returns a NativeKeyValueArrays with a copy of all this hash map's keys and values.
GetValueArray Returns an array with a copy of all this hash map's values (in no particular order).
TryGetFirstValue Gets an iterator for a key.
TryGetNextValue Advances an iterator to the next value associated with its key.