docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateArchetypeChunkArrayAsync

    CreateArchetypeChunkArrayAsync(AllocatorHandle, out JobHandle)

    Obsolete. Use ToArchetypeChunkListAsync(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(AllocatorHandle, out JobHandle) instead.

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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)