CopyFromComponentDataArray<T>(NativeArray<T>)
Copies the values of component type T in a NativeArray into the entities matched by this query.
阅读时间1 分钟最后更新于 20 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public void CopyFromComponentDataArray<T>(NativeArray<T> componentDataArray) where T : unmanaged, IComponentData
Parameters
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