docs.unity.cn
    Show / Hide Table of Contents

    Method ToEntityArrayAsync

    ToEntityArrayAsync(Allocator, out JobHandle)

    Creates a NativeArray containing the selected entities.

    Declaration
    public NativeArray<Entity> ToEntityArrayAsync(Allocator allocator, out JobHandle jobhandle)
    Parameters
    Type Name Description
    Allocator allocator

    The type of memory to allocate.

    JobHandle jobhandle

    An out parameter assigned a handle that you can use as a dependency for a Job that uses the NativeArray.

    Returns
    Type Description
    NativeArray<Entity>

    An array containing all the entities selected by the EntityQuery.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use