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
Syntax
[GenerateTestsForBurstCompatibility]
public struct ChunkEntityEnumerator
Constructors
Name | Description |
---|---|
ChunkEntityEnumerator(Boolean, v128, Int32) | Construct a new instance. |
Methods
Name | Description |
---|---|
NextEntityIndex(out Int32) | 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. |