ToEntityArrayAsync(AllocatorHandle, out JobHandle)
Obsolete. Use EntityQuery.ToEntityListAsync instead.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
ToEntityArrayAsync(AllocatorHandle, JobHandle)
public NativeArray<Entity> ToEntityArrayAsync(AllocatorManager.AllocatorHandle allocator, out JobHandle jobhandle)
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<Entity> | An array containing all the entities selected by the query. The contents of this array must not be accessed before |
Remarks
Obsolete. Use EntityQuery.ToEntityListAsync instead.
Creates (and asynchronously populates) a NativeArray containing the selected entities.