docs.unity.cn
    Show / Hide Table of Contents

    Constructor ChunkEntityEnumerator

    ChunkEntityEnumerator(Boolean, v128, Int32)

    Construct a new instance.

    Declaration
    public ChunkEntityEnumerator(bool useEnabledMask, v128 chunkEnabledMask, int chunkEntityCount)
    Parameters
    Type Name Description
    Boolean useEnabledMask

    If true, chunkEnabledMask contains valid data and should be used to determine which entities to include in the iteration. If false, the mask is ignored and all entities in the chunk are included. You can pass this value directly from the argument provided to Execute(in ArchetypeChunk, Int32, Boolean, in v128).

    v128 chunkEnabledMask

    A bitmask for all entities in the chunk. If bit N is set, entity N within this chunk should be included in the iteration. This mask is ignored if useEnabledMask is false. You can pass this value directly from the argument provided to Execute(in ArchetypeChunk, Int32, Boolean, in v128).

    Int32 chunkEntityCount

    The number of entities in the chunk.

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