Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Animator.targetPosition

Switch to Manual
public Vector3 targetPosition;

Description

Returns the position of the target specified by SetTarget.

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