docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HighestEntityIndex

    HighestEntityIndex()

    The capacity of the internal entities array.

    Declaration
    public int HighestEntityIndex()
    Returns
    Type Description
    int

    The number of entities the array can hold before it must be resized.

    Remarks

    The entities array automatically resizes itself when the entity count approaches the capacity. You should rarely need to set this value directly.

    Important: when you set this value (or when the array automatically resizes), the EntityManager first ensures that all Jobs finish. This can prevent the Job scheduler from utilizing available CPU cores and threads, resulting in a temporary performance drop.

    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)