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.

Attach fixedarray to entity in a job

Discussion in 'Entity Component System' started by yc960, Jun 24, 2018.

  1. yc960

    yc960

    Joined:
    Apr 30, 2015
    Posts:
    228
    How to add or resize fixedarray to an entity without involving entitymanager?
     
  2. dartriminis

    dartriminis

    Joined:
    Feb 3, 2017
    Posts:
    157
    As far as I know, you can't. You must add the fixed array when you create the entity, and you can't resize it either. Resizing a fixed array would be fairly expensive to implement, though I can't see why were not able to add fixed arrays after we create an entity.