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

TypeManager.SortSystemTypesInCreationOrder

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 void SortSystemTypesInCreationOrder(List<Type> systemTypes);

Parameters

Parameter Description
systemTypes A List of system types to sort.

Description

Sorts a list of system types based on rules defined via the Unity.Entities.ISystemOrderAttribute's. CreateBeforeAttribute and CreateAfterAttribute.


Declaration

public static void SortSystemTypesInCreationOrder(NativeList<SystemTypeIndex> indices);

Parameters

Parameter Description
indices The system type indices to sort

Description

Sort the provided system type indices by their systems' CreateAfter and CreateBefore attributes, for the purposes of creating them in an order that respects said constraints. For use in implementing custom world creation, such as with ICustomBootstrap.