Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

GetComponentGroup in jobs vs IJobProcessComponent (...)

Discussion in 'Data Oriented Technology Stack' started by Antypodish, Dec 18, 2018.

  1. Antypodish


    Apr 29, 2014
    Maybe such topic exists, but my forum search don't yield desired results.
    In such case, please point me to relevant thread, if appropriate.

    I use both GetComponentGroup (without Inject) in IJob (for single threading) and expect working as well IJobParallelFor;
    and I use IJobProcessComponent / IJobProcessComponentWithEntity.
    For either job type and relevant system application, they work great accordingly.

    But can anyone briefly refresh my knowledge, reading GetComponentGroup?
    If I use it for IJobParallelFor vs instead IJobProcessComponent, (when either case works), is still more preferable to use IJobProcessComponent? Last seams more clean. But in fact, I haven't tested, if GetComponentGroup works with IJobProcessComponent?

    Can anyone confirm please?