Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

TransformChangeReason

enumeration

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

Description

Defines the reason why a Transform changed. Register and unregister for transform changes with PhysicsWorld.RegisterTransformChange and PhysicsWorld.UnregisterTransformChange.

Properties

Property Description
WorldPosition The World-space position of the transform changed. Changing a parent results in an event in children transform too. See Transform._position.
WorldRotation The World-space rotation of the transform changed. Changing a parent results in an event in children transform too. See Transform._rotation.
WorldScale The World-space scale of the transform changed. Changing a parent results in an event in children transform too. See Transform._lossyScale.
LocalPosition The local position of the transform changed. This does not propagate to children or parent transforms. See Transform._localPosition.
LocalRotation The local rotation of the transform changed. This does not propagate to children or parent transforms. See Transform._localRotation.
LocalScale The local scale of the transform changed. This does not propagate to children or parent transforms. See Transform._localScale.
Animation The animation system wrote a physics-based world-space TRS change.
ParentHierarchy The parent transform hierarchy changed. Indicates that a direct or indirect parent has been added, removed or re-parented.
AnyWorld The world-space position, rotation or scale of the transform changed.
AnyLocal The local position, rotation or scale of the transform changed.
Any Any transform change.