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

SystemState.Dependency

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

public JobHandle Dependency;

Description

The ECS-related data dependencies of the system.

Before SystemBase.OnUpdate or ISystem.OnUpdate, the Dependency property represents the combined job handles of any job that writes to the same components that the current system reads -- or reads the same components that the current system writes to.

The [JobHandle] objects of any jobs scheduled with explicit dependencies are not combined with the system’s Dependency property. You must set the Dependency property manually to make sure that later systems receive the correct job dependencies.

[JobHandle]: https://docs.unity3d.com/ScriptReference/Unity.Jobs.JobHandle.html

Additional resources: SystemBase.Dependency