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

EntityQuery.GetCombinedComponentOrderVersion

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

Obsolete This function is deprecated, and will be removed in a future release. Use the new variant instead, with includeEntityType set to true.

Declaration

public int GetCombinedComponentOrderVersion();

Returns

int Returns the sum of the order versions of all components required by this query, including the Entity component type implicitly required by all queries.

Description

This method is obsolete. Use EntityManager.GetComponentOrderVersion instead.


Declaration

public int GetCombinedComponentOrderVersion(bool includeEntityType);

Parameters

Parameter Description
includeEntityType If true, the implicit Entity component implicitly required by all queries is included for the purposes of this calculation. This is not generally desirable, as adding or removing entities to any archetype would affect the combined order versions of all queries.

Returns

int Returns the sum of the order versions of all components required by this query.

Description

This method computes the sum of the order versions for all components required by this query.