Method ToArchetypeChunkListAsync
ToArchetypeChunkListAsync(AllocatorHandle, out JobHandle)
Asynchronously creates a list of the chunks containing entities matching this EntityQuery.
Declaration
public NativeList<ArchetypeChunk> ToArchetypeChunkListAsync(AllocatorManager.AllocatorHandle allocator, out JobHandle outJobHandle)
Parameters
Type | Name | Description |
---|---|---|
AllocatorManager.AllocatorHandle | allocator | Allocator to use for the list. |
JobHandle | outJobHandle | An |
Returns
Type | Description |
---|---|
NativeList<ArchetypeChunk> | A list containing all the chunks selected by the query. The contents of this list (including
the list's |
Remarks
Use outJobHandle
as a dependency for jobs that use the returned chunk array.
See Also
ToArchetypeChunkListAsync(AllocatorHandle, JobHandle, out JobHandle)
Asynchronously creates a list of the chunks containing entities matching this EntityQuery.
Declaration
public NativeList<ArchetypeChunk> ToArchetypeChunkListAsync(AllocatorManager.AllocatorHandle allocator, JobHandle additionalInputDep, out JobHandle outJobHandle)
Parameters
Type | Name | Description |
---|---|---|
AllocatorManager.AllocatorHandle | allocator | Allocator to use for the list. |
JobHandle | additionalInputDep | A job handle which the newly scheduled job will depend upon, in addition to the dependencies automatically determined by the component safety system. |
JobHandle | outJobHandle | An |
Returns
Type | Description |
---|---|
NativeList<ArchetypeChunk> | A list containing all the chunks matched by the query. The contents of this list (including
the list's |
Remarks
Use outJobHandle
as a dependency for jobs that use the returned chunk array.
If the query contains enableable components, chunks that contain zero entities with all relevant
components enabled will not be included in the output list.