文档

Unity Engine

Unity Engine

targetRotation

Returns the rotation of the target specified by Animator.SetTarget.
阅读时间1 分钟最后更新于 1 天前

Definition

public Quaternion targetRotation { get; }

Remarks

The rotation is only valid when a frame is being evaluated after the Animator.SetTarget call. Animator.applyRootMotion must be enabled for targetRotation to be calculated.