IJobExtensions.Schedule

Declaration

public static Unity.Jobs.JobHandle Schedule(T jobData, Unity.Jobs.JobHandle dependsOn);

Parameters

jobData The job and data to schedule.
dependsOn The dependency of the job. Dependencies ensure that a job executes on worker threads after the dependency has completed execution, and that two jobs reading or writing to same data do not run in parallel.

Returns

JobHandle The handle identifying the scheduled job, which you can use as a dependency for a later job or to ensure completion on the main thread.

Description

Schedules the job for execution on a worker thread.

Additional resources: IJob.


Did you find this page useful? Please give it a rating: