Struct ChunkEntityEnumerator
Helper utility to quickly identify the next available entity or component within a chunk (e.g. the index of the NativeArray_1 retrieved via GetComponentDataPtrRW<T>(ref ComponentTypeHandle<T>) or GetEntityDataPtrRO(EntityTypeHandle))
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
public struct ChunkEntityEnumerator
Constructors
| Name | Description |
|---|---|
| ChunkEntityEnumerator(bool, v128, int) | Construct a new instance. |
Methods
| Name | Description |
|---|---|
| NextEntityIndex(out int) | Iterates through the given ArchetypeChunk, retrieving the index of the next available entity. This function will pass over any entities whose components implement IEnableableComponent and are currently disabled. |