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

TransformLookup.DidChange

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 bool DidChange(Entity entity, uint version);

Parameters

Parameter Description
entity The entity.
version The version to compare. In a system, this parameter should be set to the current ComponentSystemBase.LastSystemVersion at the time the job is run or scheduled.

Returns

bool True, if the version number stored in the chunk for this component is more recent than the version passed to the version parameter.

Description

Reports whether any of TransformRef components in the chunk containing the specified Entity could have changed since a previous version.

Note that for efficiency, the change version applies to whole chunks not individual entities. The change version is incremented even when another job or system that has declared write access to a component does not actually change the component value.