docs.unity.cn
    Show / Hide Table of Contents

    Method ToEntityArray

    ToEntityArray(AllocatorManager.AllocatorHandle)

    Creates a NativeArray containing the selected entities.

    Declaration
    public NativeArray<Entity> ToEntityArray(AllocatorManager.AllocatorHandle allocator)
    Parameters
    Type Name Description
    AllocatorManager.AllocatorHandle allocator

    The type of memory to allocate.

    Returns
    Type Description
    NativeArray<Entity>

    An array containing all the entities selected by the EntityQuery.

    Remarks

    This version of the function blocks on all registered jobs against the relevant query components. For a non-blocking variant, see ToEntityListAsync(AllocatorManager.AllocatorHandle, out JobHandle)

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023