Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Feature Request: Add fixedarray support in postupdatecommand and entitycommandbuffer

Discussion in 'Entity Component System' started by yc960, Jul 1, 2018.

  1. yc960

    yc960

    Joined:
    Apr 30, 2015
    Posts:
    228
    currently the only way to attach a fixedarray to an entity is through entity manager, needless to say that is not that useful.
     
  2. Spy-Shifty

    Spy-Shifty

    Joined:
    May 5, 2011
    Posts:
    546
    A workaround:
    I've solved this by creating the entity with the fixedarray in a separat world called SetupWorld. at the end of the update loop I copy all entity from that SetupWorld into the active world.

    This depends on your usecase and you system setup.

    But I also like to have this feature in future!
     
  3. andywatts

    andywatts

    Joined:
    Sep 19, 2015
    Posts:
    103
    Could use this when scaffolding new entities from inside a system