ToComponentDataArrayAsync<T>(AllocatorHandle, out JobHandle)
Obsolete. Use EntityQuery.ToComponentDataListAsync instead.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
ToComponentDataArrayAsync<T>(AllocatorHandle, JobHandle)
public NativeArray<T> ToComponentDataArrayAsync<T>(AllocatorManager.AllocatorHandle allocator, out JobHandle jobhandle) where T : unmanaged, IComponentData
Parameters
The type of memory to allocate.
An parameter assigned a handle that you can use as a dependency for a Job that uses the output data.
outReturns
Type | Description |
|---|---|
| NativeArray<T> | An array containing all the values of component type |
Remarks
Obsolete. Use EntityQuery.ToComponentDataListAsync instead.
Creates (and asynchronously populates) a NativeArray containing the value of component for the selected entities.
T