Method ToEntityArrayAsync
ToEntityArrayAsync(AllocatorManager.AllocatorHandle, out JobHandle)
Obsolete. Use ToEntityListAsync(AllocatorManager.AllocatorHandle, out JobHandle) instead.
Declaration
[Obsolete("This method does not correctly support enableable components, and is generally unsafe. Use ToEntityListAsync() instead. (RemovedAfter Entities 1.0)")]
public NativeArray<Entity> ToEntityArrayAsync(AllocatorManager.AllocatorHandle allocator, out JobHandle jobhandle)
Parameters
Type | Name | Description |
---|---|---|
AllocatorManager.AllocatorHandle | allocator | The type of memory to allocate. |
JobHandle | jobhandle | An |
Returns
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 ToEntityListAsync(AllocatorManager.AllocatorHandle, out JobHandle) instead.
Creates (and asynchronously populates) a NativeArray containing the selected entities.
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown in the query contains any enableable components. |