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
    • 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