Search Unity

Is there a way to make a JobHandle?

Discussion in 'Entity Component System' started by Baggers_, Nov 22, 2021.

  1. Baggers_

    Baggers_

    Joined:
    Sep 10, 2017
    Posts:
    98
    I love that the ReadHandles returned by AsyncReadManager.Read contain a JobHandle. This lets me chain data-processing jobs onto loads trivially.

    I have other tasks outside of the job system where I would like to use a JobHandles so that jobs can depend on those tasks.

    Has anyone seen a way to do this?

    Cheers

    p.s. I am aware that we can run managed code in non-burst jobs, I use this in parts of my project. In this case I'm specifically interested in use JobHandle to signal from other systems