文档

Unity Engine

Unity Engine

PhysicsWorld.TransformChangeReason

Defines the reason why a Transform changed. Register and unregister for transform changes with PhysicsWorld.RegisterTransformChange and PhysicsWorld.UnregisterTransformChange.
阅读时间1 分钟最后更新于 21 天前

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 Transform.localPosition.
LocalRotationThe local rotation of the transform changed. This does not propagate to children or parent transforms. See Transform.localRotation.
LocalScaleThe local scale of the transform changed. This does not propagate to children or parent transforms. See Transform.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 Transform.position.
WorldRotationThe World-space rotation of the transform changed. Changing a parent results in an event in children transform too. See Transform.rotation.
WorldScaleThe World-space scale of the transform changed. Changing a parent results in an event in children transform too. See Transform.lossyScale.