文档

Unity Engine

Unity Engine

SetTarget(AvatarTarget, float)

Sets an AvatarTarget and a targetNormalizedTime for the current state.
阅读时间1 分钟最后更新于 1 个月前

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.