Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

JobChunkExtensions.Schedule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static JobHandle Schedule(T jobData, EntityQuery query, JobHandle dependsOn);

Parameters

Parameter Description
jobData An IJobChunk instance.
query The query selecting chunks with the necessary components.
dependsOn The handle identifying already scheduled jobs that must complete before this job is executed. For example, a job that writes to a component cannot run in parallel with other jobs that read or write that component. Jobs that only read the same components can run in parallel. Most frequently, an appropriate value for this parameter is SystemState.Dependency to ensure that jobs registered with the safety system are taken into account as input dependencies.

Returns

JobHandle A handle that combines the current Job with previous dependencies identified by the dependsOn parameter.

Description

Adds an IJobChunk instance to the job scheduler queue for sequential (non-parallel) execution.