docs.unity3d.com
  • Manual
  • Scripting API
  • Changelog
  • License
    Show / Hide Table of Contents
    • Scripting API

    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).

    In This Article
    • CreateArchetypeChunkArrayAsync(Allocator, out JobHandle)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023