Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


targetPosition

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

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public Vector3 targetPosition { get; }

Remarks

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