Documentation

Unity Engine

Download Unity

Unity Engine

targetRotation

Returns the rotation of the target specified by Animator.SetTarget.
Read time 1 minuteLast updated 3 days ago

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.