docs.unity.cn
    Show / Hide Table of Contents

    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023