# SetTarget(AvatarTarget, float)

> Sets an AvatarTarget and a targetNormalizedTime for the current state.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public void SetTarget(AvatarTarget targetIndex, float targetNormalizedTime)
```

### Parameters

**** (\[AvatarTarget]\(/engine/6000.5/script-reference/unityengine/avatartarget)): The avatar body part that is queried.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The current state Time that is queried.

### Remarks

Once the frame is evaluated, use [Animator.targetPosition](/engine/6000.5/script-reference/unityengine/animator/targetposition.md) and [Animator.targetRotation](/engine/6000.5/script-reference/unityengine/animator/targetrotation.md) to query the position and rotation.
