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
    Generated by DocFX
    on Wednesday, June 21, 2023