Search Unity

Question About IJobParallelForTransform, what's the execution order inside a single thread?

Discussion in 'Scripting' started by lan_ks, Sep 29, 2021.

  1. lan_ks

    lan_ks

    Joined:
    Aug 9, 2020
    Posts:
    4
    Is it consistent with the hierarchy?

    For example, transform A has a child B, and we put them into a TransformAccessArray used by a IJobParallelForTransform. They will be assigned to a same thread. I want to know what's the execution order of A and B.

    In my case, I want to update position of some transforms using IJobParallelForTransform. Some of the transforms are related in hierarchy, and I assumed they would be executed from top to bottom, but I don't know if it's right. I didn't find any document or topic about it yet.
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    Sounds like a post for the DOTS sub-forums here.
     
  3. lan_ks

    lan_ks

    Joined:
    Aug 9, 2020
    Posts:
    4
    Thank you for pointing out that. I posted a new thread in DOTS sub-forums here.
     
    MelvMay likes this.