docs.unity3d.com
    Show / Hide Table of Contents

    Property EntityCapacity

    EntityCapacity

    The capacity of the internal entities array.

    Declaration
    public readonly int EntityCapacity { get; }
    Property Value
    Type Description
    Int32

    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.

    Back to top
    Terms of use
    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