Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetTarget(AvatarTarget, float)

Sets an AvatarTarget and a targetNormalizedTime for the current state.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public void SetTarget(AvatarTarget targetIndex, float targetNormalizedTime)

Parameters

targetIndex

The avatar body part that is queried.

targetNormalizedTime

The current state Time that is queried.

Remarks

Once the frame is evaluated, use Animator.targetPosition and Animator.targetRotation to query the position and rotation.