Search Unity

Will there be IJobProcessBufferElementData?

Discussion in 'Entity Component System' started by timmehhhhhhh, Dec 10, 2018.

  1. timmehhhhhhh

    timmehhhhhhh

    Joined:
    Sep 10, 2013
    Posts:
    157
    Just wondering if we can expect this and other variants to go along with the ComponentData interfaces? Or a more streamlined way of mixing the two, as I often want to process both. Cheers!
     
  2. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    I think using IJobProcessComponentDataWithEntity then put BufferFromEntity in there by public field serves that use case, while flexible enough for other tasks.
     
  3. timmehhhhhhh

    timmehhhhhhh

    Joined:
    Sep 10, 2013
    Posts:
    157
    it works, but it would certainly be nice to have built-in versions that cover both - there's a not insignificant amount of code (and thus, thinking) you have to do if you want to deal with data that isn't simple blittable IComponentData, this is one case that could be improved.
     
  4. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Yes we want to add support for that.