docs.unity.cn
    Show / Hide Table of Contents

    Method NextEntityIndex

    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.

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

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

    Returns
    Type Description
    Boolean

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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023