Documentation

Unity Engine


Unity Engine


ChunkEntityEnumerator(bool, v128, int)

Construct a new instance.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Constructor
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public ChunkEntityEnumerator(bool useEnabledMask, v128 chunkEnabledMask, int chunkEntityCount)

Parameters

useEnabledMask

If true,
chunkEnabledMask
contains valid data and should be used to determine which entities to include in the iteration. If false, the mask is ignored and all entities in the chunk are included. You can pass this value directly from the argument provided to IJobChunk.Execute.

chunkEnabledMask

A bitmask for all entities in the chunk. If bit N is set, entity N within this chunk should be included in the iteration. This mask is ignored if
useEnabledMask
is false. You can pass this value directly from the argument provided to IJobChunk.Execute.

chunkEntityCount

The number of entities in the chunk.