# CreateArchetypeChunkArray(AllocatorHandle)

> Obsolete. Use EntityQuery.ToArchetypeChunkArray instead.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

> **Warning:**
>
> **Deprecated.** This method has been renamed to ToArchetypeChunkArray. (RemovedAfter Entities 1.0)
>
> **Upgrade to** [EntityQuery.ToArchetypeChunkArray](/engine/7000.0/script-reference/unity/entities/entityquery/toarchetypechunkarray.md)

```csharp
public NativeArray<ArchetypeChunk> CreateArchetypeChunkArray(AllocatorManager.AllocatorHandle allocator)
```

### Parameters

**** (\[AllocatorHandle]\(/engine/7000.0/script-reference/unity/collections/allocatormanager/allocatorhandle)): Allocator to use for the array.

### Returns

| Type                                                                                              | Description                                                    |
| ------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [NativeArray\<ArchetypeChunk>](/engine/7000.0/script-reference/unity/collections/nativearray1.md) | A NativeArray of all the chunks in this matched by this query. |
