Documentation

Unity Engine


Unity Engine


CopyFromComponentDataArray<T>(NativeArray<T>)

Copies the values of component type T in a NativeArray into the entities matched by this query.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public void CopyFromComponentDataArray<T>(NativeArray<T> componentDataArray) where T : unmanaged, IComponentData

Parameters

componentDataArray

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