Search Unity

GetComponentGroup in jobs vs IJobProcessComponent (...)

Discussion in 'Entity Component System' started by Antypodish, Dec 18, 2018.

  1. Antypodish

    Antypodish

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

    So,
    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?
    Thx.