CopyFromComponentDataArrayAsync<T>(NativeArray<T>, out JobHandle)
Obsolete. Use EntityQuery.CopyFromComponentDataListAsync instead.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
CopyFromComponentDataArrayAsync<T>(NativeArray<T>, JobHandle)
public void CopyFromComponentDataArrayAsync<T>(NativeArray<T> componentDataArray, out JobHandle jobHandle) where T : unmanaged, IComponentData
Parameters
The values to copy into the matching entities.
An parameter assigned a handle that you can use as a dependency for a Job that should happen after this operation completes.
outRemarks
Obsolete. Use EntityQuery.CopyFromComponentDataListAsync instead.
Asynchronously copies the values of component type in a NativeArray into the entities matched by this query. This method is generally used in conjunction with EntityQuery.ToComponentDataArrayAsync 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.
T