docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method NextEntityIndex

    NextEntityIndex(out int)

    Iterates through the given ArchetypeChunk, retrieving the index of the next available entity as defined by the mask info provided to the constructor.

    Declaration
    public bool NextEntityIndex(out int nextIndex)
    Parameters
    Type Name Description
    int nextIndex

    The index of the next available entity in the ArchetypeChunk, or -1 when the function returns false.

    Returns
    Type Description
    bool

    Whether the iteration should continue.

    In This Article
    Back to top
    Copyright © 2025 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)