# PhysicsWorld.TransformChangeReason

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

## Definition

* **Type:** Enum
* **Namespace:** [Unity.U2D.Physics](/engine/7000.0/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
[Flags]
public enum PhysicsWorld.TransformChangeReason
```

## Fields

| Value                                                                                                                      | Description                                                                                                                                                                                                       |
| -------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Animation](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/transformchangereason/animation.md)             | The animation system wrote a physics-based world-space TRS change.                                                                                                                                                |
| [Any](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/transformchangereason/any.md)                         | Any transform change.                                                                                                                                                                                             |
| [AnyLocal](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/transformchangereason/anylocal.md)               | The local position, rotation or scale of the transform changed.                                                                                                                                                   |
| [AnyWorld](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/transformchangereason/anyworld.md)               | The world-space position, rotation or scale of the transform changed.                                                                                                                                             |
| [LocalPosition](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/transformchangereason/localposition.md)     | The local position of the transform changed. This does not propagate to children or parent transforms. See [Transform.localPosition](/engine/7000.0/script-reference/unityengine/transform/localposition.md).     |
| [LocalRotation](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/transformchangereason/localrotation.md)     | The local rotation of the transform changed. This does not propagate to children or parent transforms. See [Transform.localRotation](/engine/7000.0/script-reference/unityengine/transform/localrotation.md).     |
| [LocalScale](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/transformchangereason/localscale.md)           | The local scale of the transform changed. This does not propagate to children or parent transforms. See [Transform.localScale](/engine/7000.0/script-reference/unityengine/transform/localscale.md).              |
| [ParentHierarchy](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/transformchangereason/parenthierarchy.md) | The parent transform hierarchy changed. Indicates that a direct or indirect parent has been added, removed or re-parented.                                                                                        |
| [WorldPosition](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/transformchangereason/worldposition.md)     | The World-space position of the transform changed. Changing a parent results in an event in children transform too. See [Transform.position](/engine/7000.0/script-reference/unityengine/transform/position.md).  |
| [WorldRotation](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/transformchangereason/worldrotation.md)     | The World-space rotation of the transform changed. Changing a parent results in an event in children transform too. See [Transform.rotation](/engine/7000.0/script-reference/unityengine/transform/rotation.md).  |
| [WorldScale](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/transformchangereason/worldscale.md)           | The World-space scale of the transform changed. Changing a parent results in an event in children transform too. See [Transform.lossyScale](/engine/7000.0/script-reference/unityengine/transform/lossyscale.md). |
