---
title: GetValueArray(AllocatorHandle)
product: Unity Editor
version: '6000.7'
latest_version: '7000.0'
status: This page documents version 6000.7. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashmap2/readonly/getvaluearray
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashmap2/readonly/getvaluearray.md
last_updated: 2026-09-14
generated_at: 2026-11-18T08:40:41.566Z
locale: en-us
---

# GetValueArray(AllocatorHandle)

> Returns an array with a copy of all this hash map's values (in no particular order).

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections.LowLevel.Unsafe](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public readonly NativeArray<TValue> GetValueArray(AllocatorManager.AllocatorHandle allocator)
```

### Parameters

**** (\[AllocatorHandle]\(/engine/6000.7/script-reference/unity/collections/allocatormanager/allocatorhandle)): The allocator to use.

### Returns

| Type                                                                                 | Description                                                                  |
| ------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------- |
| [NativeArray\<T>](/engine/6000.7/script-reference/unity/collections/nativearray1.md) | An array with a copy of all this hash map's values (in no particular order). |
