Method CreateArchetypeChunkArrayAsync
CreateArchetypeChunkArrayAsync(Allocator, out JobHandle)
Asynchronously creates an array of the chunks containing entities matching this EntityQuery.
Declaration
public NativeArray<ArchetypeChunk> CreateArchetypeChunkArrayAsync(Allocator allocator, out JobHandle jobhandle)
Parameters
Type | Name | Description |
---|---|---|
Allocator | allocator | Allocator to use for the array. |
JobHandle | jobhandle | An |
Returns
Type | Description |
---|---|
NativeArray<ArchetypeChunk> | NativeArray of all the chunks containing entities matching this query. |
Remarks
Use jobhandle
as a dependency for jobs that use the returned chunk array.
CreateArchetypeChunkArray(Allocator).