docs.unity.cn
    Show / Hide Table of Contents

    Method CreateArchetypeChunkArrayAsync

    CreateArchetypeChunkArrayAsync(Allocator, out JobHandle)

    Asynchronously creates an array of the chunks containing entities matching this EntityQuery.

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

    Allocator to use for the array.

    JobHandle jobhandle

    An out parameter assigned the handle to the internal job that gathers the chunks matching this EntityQuery.

    Returns
    Type Description
    NativeArray<ArchetypeChunk>

    NativeArray of all the chunks containing entities matching this query.

    Remarks

    Use jobhandle as a dependency for jobs that use the returned chunk array. CreateArchetypeChunkArray(Allocator).

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 04 August 2022
    Terms of use