Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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

Discussion in 'Entity Component System' 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.