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

NativeKeyValueArrays<T0,T1>

struct in Unity.Collections


Implements interfaces:INativeDisposable

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

The keys and values of a hash map copied into two parallel arrays.

For each key-value pair copied from the hash map, the key is stored in Keys[i] while the value is stored in Values[i] (for the same i).

NativeKeyValueArrays is not actually itself a native collection: it contains a NativeArray for the keys and a NativeArray for the values, but a NativeKeyValueArrays does not have its own safety handles.

Properties

Property Description
Keys The keys.
Length The number of key-value pairs.
Values The values.

Constructors

Constructor Description
NativeKeyValueArrays_2 Initializes and returns an instance of NativeKeyValueArrays.

Public Methods

Method Description
Dispose Releases all resources (memory and safety handles).