GetKeyArray(AllocatorHandle)
Returns an array with a copy of all the keys (in no particular order).
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public NativeArray<TKey> GetKeyArray(AllocatorManager.AllocatorHandle allocator)
Parameters
The allocator to use.
Returns
Type | Description |
|---|---|
| NativeArray<T> | An array with a copy of all the keys (in no particular order). |
Remarks
A key with "N" values is included "N" times in the array.
Use of NativeParallelHashMapExtensions instead if you only want one occurrence of each key.
GetUniqueKeyArray