Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

FixedArrayArray in Groups

Discussion in 'Data Oriented Technology Stack' started by xXPancakeXx, Apr 10, 2018.

  1. xXPancakeXx

    xXPancakeXx

    Joined:
    Mar 14, 2015
    Posts:
    13
    Hello,

    So ive looked into the Unite Austin Technical preview navigation components and saw that they use a system which gets following data injected.



    But where does that FixedArrayArray come from? Do I have to specify it somewhere?
     
  2. andywatts

    andywatts

    Joined:
    Sep 19, 2015
    Posts:
    42
    You can add a FixedArray to an entity using the below.
    Code (CSharp):
    1. entityManager.AddComponent(entity, ComponentType.FixedArray(typeof(PolygonId), 10) );
    Your entity group returns a FixedArrayArray- basically an Array of FixedArrays for all the matching entities.
     
    Creepgin and xXPancakeXx like this.