GetValueArray(AllocatorHandle)
Returns an array with a copy of all the values (in no particular order).
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
public readonly NativeArray<TValue> GetValueArray(AllocatorManager.AllocatorHandle allocator)
Parameters
The allocator to use.
Returns
Type | Description |
|---|---|
| NativeArray<T> | An array with a copy of all the values (in no particular order). |
Remarks
The values are not deduplicated. If you sort the returned array, you can use NativeParallelHashMapExtensions.Unique to remove duplicate values.