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. This function will pass over any entities whose components implement IEnableableComponent and are currently disabled.

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

    The index of the next available entity in the ArchetypeChunk. when the function returns false, this result is undefined.

    Returns
    Type Description
    bool

    whether or not there is another available index within the ArchetypeChunk, based on the last available iteration

    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)