Search Unity

Jobs only for small tasks

Discussion in 'Entity Component System' started by lianaqiang, Mar 27, 2018.

  1. lianaqiang

    lianaqiang

    Joined:
    Apr 24, 2013
    Posts:
    14
    After taking look at Job System, i realize that jobs can only used for some kind of samll tasks,as the Complete method will blocks until the job completes. what if i want to Schedule a long running job?
     
    Last edited: Mar 27, 2018
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    You can use JobHandle.IsCompleted to check if it has completed...
     
    SugoiDev likes this.
  3. lianaqiang

    lianaqiang

    Joined:
    Apr 24, 2013
    Posts:
    14
    Thanks