docs.unity.cn
    Show / Hide Table of Contents

    Method ToArchetypeChunkArray

    ToArchetypeChunkArray(AllocatorManager.AllocatorHandle)

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

    Declaration
    public NativeArray<ArchetypeChunk> ToArchetypeChunkArray(AllocatorManager.AllocatorHandle allocator)
    Parameters
    Type Name Description
    AllocatorManager.AllocatorHandle allocator

    Allocator to use for the array.

    Returns
    Type Description
    NativeArray<ArchetypeChunk>

    A NativeArray of all the chunks in this matched by this query.

    Remarks

    This method blocks until the internal job that performs the query completes. If the query contains enableable components, chunks that contain zero entities with all relevant components enabled will not be included in the output list.

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