Documentation

Unity Engine

Download Unity

Unity Engine

CreateArchetypeChunkArrayAsync(AllocatorHandle, out JobHandle)

Obsolete. Use EntityQuery.ToArchetypeChunkListAsync instead.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

CreateArchetypeChunkArrayAsync(AllocatorHandle, JobHandle)

Warning
Removed. This method is not actually asynchronous. Use ToArchetypeChunkListAsync() instead. (RemovedAfter Entities 1.0)
public NativeArray<ArchetypeChunk> CreateArchetypeChunkArrayAsync(AllocatorManager.AllocatorHandle allocator, out JobHandle outJobHandle)

Parameters

Allocator to use for the array.

outJobHandle

An
out
parameter assigned the handle to the internal job that gathers the chunks matching this EntityQuery.

Returns

Type

Description

NativeArray<ArchetypeChunk>NativeArray of all the chunks containing entities matching this query.

Remarks

Use
outJobHandle
as a dependency for jobs that use the returned chunk array.