# CopyFromComponentDataArrayAsync<T>(NativeArray<T>, out JobHandle)

> Obsolete. Use EntityQuery.CopyFromComponentDataListAsync instead.

## Definition

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

## CopyFromComponentDataArrayAsync\<T>(NativeArray\<T>, JobHandle)

> **Warning:**
>
> **Deprecated.** This method does not correctly support enableable components, and is generally unsafe. Use CopyFromComponentDataListAsync() instead. (RemovedAfter Entities 1.0)

```csharp
public void CopyFromComponentDataArrayAsync<T>(NativeArray<T> componentDataArray, out JobHandle jobHandle) where T : unmanaged, IComponentData
```

### Parameters

**** (\[NativeArray\<T>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): The values to copy into the matching entities.**** (\[JobHandle]\(/engine/7000.0/script-reference/unity/jobs/jobhandle)): An `out` parameter assigned a handle that you can use as a dependency for a Job that should happen after this operation completes.

### Remarks

**Obsolete.** Use [EntityQuery.CopyFromComponentDataListAsync](/engine/7000.0/script-reference/unity/entities/entityquery/copyfromcomponentdatalistasync.md) instead.

Asynchronously copies the values of component type `T` in a NativeArray into the entities matched by this query. This method is generally used in conjunction with [EntityQuery.ToComponentDataArrayAsync](/engine/7000.0/script-reference/unity/entities/entityquery/tocomponentdataarrayasync.md) to extract component values, pass them into some code that expects a flat array of values, and then scatter the updated values back to entities.
