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

EntityQuery.SetChangedVersionFilter

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 SetChangedVersionFilter(ComponentType componentType);

Parameters

Parameter Description
componentType ComponentType to mark as changed on this EntityQuery's filter.

Description

Filters out entities in chunks for which the specified component has not changed.

Saves a given ComponentType's index in RequiredComponents in this group's Changed filter. This call disables any existing chunk filtering on this query. For additive filtering, use EntityQuery.AddChangedVersionFilter.


Declaration

public void SetChangedVersionFilter(ComponentType[] componentType);

Parameters

Parameter Description
componentType ComponentTypes to mark as changed on this EntityQuery's filter.

Description

Filters out entities in chunks for which the specified component has not changed.

Saves a given ComponentType's index in RequiredComponents in this group's Changed filter. This call disables any existing chunk filtering on this query. For additive filtering, use EntityQuery.AddChangedVersionFilter.