Search Unity

DynamicBuffer vs. ComponentType.FixedArray

Discussion in 'Entity Component System' started by orionburcham, Dec 20, 2018.

  1. orionburcham

    orionburcham

    Joined:
    Jan 31, 2010
    Posts:
    488
    Hello!

    DynamicBuffers and ComponentType.FixedArray seem to offer similar functionality: Adding a collection of structs to your Entity, which act like an array of Components.

    Are there important differences between these two approaches? Are they intended to be used in different ways?

    Thanks!
     
    Last edited: Dec 20, 2018
  2. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
    DynamicBuffer it’s replacement for FixedArrays, FA was replaced many monthes ago in 0.0.10 preview.
    upload_2018-12-20_19-23-20.png
     
    Antypodish likes this.
  3. orionburcham

    orionburcham

    Joined:
    Jan 31, 2010
    Posts:
    488
    Thanks a lot for the info. I've been away for about a year, and it can be difficult to keep track of what's still supported.

    Much appreciated!
     
  4. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,780
    I think this will be like almost learning from beginning. ;)
    There was some great changes along the way.

    Just to add, injection is also going to be depreciated.