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

ComponentSystemGroup.EnableSystemSorting

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 bool EnableSystemSorting;

Description

If true (the default), calling SortSystems() will sort the system update list, respecting the constraints imposed by [UpdateBefore] and [UpdateAfter] attributes.

SortSystems() is called automatically during DefaultWorldInitialization, as well as at the beginning of ComponentSystemGroup.OnUpdate(), but may also be called manually.

If false, calls to SortSystems() on this system group will have no effect on update order of systems in this group (though SortSystems() will still be called recursively on any child system groups). The group's systems will update in the order of the most recent sort operation, with any newly-added systems updating in insertion order at the end of the list.

Setting this value to false is not recommended unless you know exactly what you're doing, and you have full control over the systems which will be updated in this group.