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

SystemBase.Update

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 void Update();

Description

Update the system manually.

Systems should never override Update(). Instead, implement system behavior in SystemBase.OnUpdate.

If a system manually calls another system's SystemBase.Update method from inside its own SystemBase.OnUpdate method, EntityQuery objects in the caller system might see unexpected and incorrect change version numbers based on the processing performed in the target system. For this reason, you shouldn't manually update one system from another if both systems are processing entity data, especially if either uses EntityQuery.SetChangedVersionFilter. This guidance doesn't apply to ComponentSystemGroup or other "pass-through" systems which only update other systems without manipulating entity data.