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: solution.dll
Syntax
[GenerateTestsForBurstCompatibility]
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. |