Method ToEntityArrayAsync
ToEntityArrayAsync(Allocator, out JobHandle)
Creates a NativeArray containing the selected entities.
Declaration
public NativeArray<Entity> ToEntityArrayAsync(Allocator allocator, out JobHandle jobhandle)
Parameters
| Type | Name | Description |
|---|---|---|
| Allocator | allocator | The type of memory to allocate. |
| JobHandle | jobhandle | An |
Returns
| Type | Description |
|---|---|
| NativeArray<Entity> | An array containing all the entities selected by the EntityQuery. |