# CopyFromComponentDataArray<T>(NativeArray<T>)

> Copies the values of component type T in a NativeArray into the entities matched by this query.

## Definition

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

```csharp
public void CopyFromComponentDataArray<T>(NativeArray<T> componentDataArray) where T : unmanaged, IComponentData
```

### Parameters

**** (\[NativeArray\<T>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): The values to copy into the matching entities.

### Remarks

This version of the function blocks on all registered jobs that access any of the query components. For a non-blocking variant, see [EntityQuery.CopyFromComponentDataListAsync](/engine/7000.0/script-reference/unity/entities/entityquery/copyfromcomponentdatalistasync.md)
