docs.unity3d.com
Search Results for

    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
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)