docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CalculateChunkCount

    CalculateChunkCount()

    Calculates the number of chunks that match this EntityQuery, taking into account all active query filters and enabled components.

    Declaration
    public int CalculateChunkCount()
    Returns
    Type Description
    int

    The number of chunks based on the current EntityQuery properties.

    Remarks

    This count will not include chunks that do not pass any active chunk-level filters (e.g. SetSharedComponentFilter<SharedComponent>(SharedComponent)), nor any chunks where zero entities have all the required components enabled.

    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)