Search Unity

Are job structs going to be deprecated?

Discussion in 'Entity Component System' started by davenirline, Jan 23, 2020.

  1. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    987
    It seems lambda is now the rage but most of our code uses job structs. We even have utility job structs that can be reused. I don't want to change it but if it's going to be deprecated, I'm gonna have to start refactoring.
     
  2. Lucas-Meijer

    Lucas-Meijer

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    175
    No, they are not going anywhere. In fact the lambda entities.foreach gets compiled into a custom struct that implements IJobChunk.
     
    thelebaron and davenirline like this.