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

EntityQuery.AddDependency

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 JobHandle AddDependency(JobHandle job);

Parameters

Parameter Description
job Handle for the job to add to the query's dependencies.

Returns

JobHandle The new combined job handle for the query's dependencies.

Description

Adds another job handle to this EntityQuery's dependencies.

An entity query uses jobs internally when required to create arrays of entities and chunks. This junction adds an external job as a dependency for those internal jobs.