Search Unity

What is capacity in OnCreateManager

Discussion in 'Entity Component System' started by bpeake-contigo, May 18, 2018.

  1. bpeake-contigo

    bpeake-contigo

    Joined:
    Mar 14, 2017
    Posts:
    6
    I've been digging into the new ECS system and there is one thing that I haven't been able to find any documentation on. In the startup code for any system the signature looks like this:

    Code (CSharp):
    1. protected virtual void OnCreateManager(int capacity);
    Looking through how this is called, it seems a world can set a capacity variable for each type of system, with the default being 10.

    However I cannot find what the intention of this variable is? Is anyone aware of how this is intended to be used?
     
  2. mike_acton

    mike_acton

    Unity Technologies

    Joined:
    Nov 21, 2017
    Posts:
    110
    Vestigial. Ignore it.