docs.unity.cn
    Show / Hide Table of Contents

    Method CreateArchetypeChunkArrayAsync

    CreateArchetypeChunkArrayAsync(AllocatorManager.AllocatorHandle, out JobHandle)

    Obsolete. Use ToArchetypeChunkListAsync(AllocatorManager.AllocatorHandle, out JobHandle) instead.

    Declaration
    [Obsolete("This method is not actually asynchronous. Use ToArchetypeChunkListAsync() instead. (RemovedAfter Entities 1.0)")]
    public NativeArray<ArchetypeChunk> CreateArchetypeChunkArrayAsync(AllocatorManager.AllocatorHandle allocator, out JobHandle outJobHandle)
    Parameters
    Type Name Description
    AllocatorManager.AllocatorHandle allocator

    Allocator to use for the array.

    JobHandle outJobHandle

    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

    Obsolete. Use ToArchetypeChunkListAsync(AllocatorManager.AllocatorHandle, out JobHandle) instead.

    Use outJobHandle as a dependency for jobs that use the returned chunk array.

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