Method ToEntityArray
ToEntityArray(AllocatorManager.AllocatorHandle)
Creates a NativeArray containing the selected entities.
Declaration
public NativeArray<Entity> ToEntityArray(AllocatorManager.AllocatorHandle allocator)
Parameters
Type | Name | Description |
---|---|---|
AllocatorManager.AllocatorHandle | allocator | The type of memory to allocate. |
Returns
Type | Description |
---|---|
NativeArray<Entity> | An array containing all the entities selected by the EntityQuery. |
Remarks
This version of the function blocks on all registered jobs against the relevant query components. For a non-blocking variant, see ToEntityListAsync(AllocatorManager.AllocatorHandle, out JobHandle)