Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsWorld.TransformChangeReason

Defines the reason why a Transform changed. Register and unregister for transform changes with PhysicsWorld.RegisterTransformChange and PhysicsWorld.UnregisterTransformChange.
Read time 1 minuteLast updated 12 days ago

Definition

[Flags]public enum PhysicsWorld.TransformChangeReason

Fields

Value

Description

AnimationThe animation system wrote a physics-based world-space TRS change.
AnyAny transform change.
AnyLocalThe local position, rotation or scale of the transform changed.
AnyWorldThe world-space position, rotation or scale of the transform changed.
LocalPositionThe local position of the transform changed. This does not propagate to children or parent transforms. See _localPosition.
LocalRotationThe local rotation of the transform changed. This does not propagate to children or parent transforms. See _localRotation.
LocalScaleThe local scale of the transform changed. This does not propagate to children or parent transforms. See _localScale.
ParentHierarchyThe parent transform hierarchy changed. Indicates that a direct or indirect parent has been added, removed or re-parented.
WorldPositionThe World-space position of the transform changed. Changing a parent results in an event in children transform too. See _position.
WorldRotationThe World-space rotation of the transform changed. Changing a parent results in an event in children transform too. See _rotation.
WorldScaleThe World-space scale of the transform changed. Changing a parent results in an event in children transform too. See _lossyScale.