> For the complete documentation index, see [llms.txt](https://docs.overthereality.ai/over-sdk-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overthereality.ai/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/unity-components-interactors/ovranimator.md).

# OvrAnimator

### Description

This Node is used to manage the most common interactions with the Unity [Animator](https://docs.unity3d.com/ScriptReference/Animator.html) Component.

This Over Component requires an Animator to be set up, see [Unity Manual](https://docs.unity3d.com/Manual/class-Animator.html) for more info.

Based on the action the Animator is required to perform, this component changes its behavior and requirements.

### Action Types

The OVER SDK provides several ways to interact with the Unity Animator Component. A list is present in [OvrAnimatorActionType](broken://pages/edPxSdoZwoo4SU2wvg7H).

#### Cross Fade

Creates a crossfade from the current Animator state to any other state using normalized times.&#x20;

Fades the animation, with name "StateName", in over a period of "TransitionDuration" seconds and fades other animations out.

The OVER SDK provides two ways to achieve this: either via the State Name \[CrossFadeString, accepting OvrString], or the Hash representation of said name \[CrossFadeInt, accepting OvrInt].

{% hint style="info" %}
**Note**: the following attributes are added to the existing ones from the super class [OvrNode](/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/ovrnode.md)
{% endhint %}

<table><thead><tr><th width="205.7659040188865">Name</th><th width="216.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Animator</td><td><a href="https://docs.unity3d.com/ScriptReference/Animator.html">Animator</a></td><td>Unity Animator Component</td></tr><tr><td>ActionType</td><td><a href="/pages/bLPX6RdKhk5HbAxejUaD">OvrAnimatorActionType</a></td><td>Action type [<a href="/pages/bLPX6RdKhk5HbAxejUaD">CrossFadeInt</a>, <a href="/pages/bLPX6RdKhk5HbAxejUaD">CrossFadeString</a>]</td></tr><tr><td>State[Hash]Name</td><td><a href="/pages/hEy95hRg3wjBzAXRcqWL">OvrString </a>/ [<a href="/pages/3j57sIQWIHtYDfVyTr0d">OvrInt</a>]</td><td>Name of the Animation State</td></tr><tr><td>TransitionDuration</td><td><a href="/pages/XQfQFoPQbUdpQHI6RGlQ">OvrFloat</a></td><td>Length of the transition</td></tr><tr><td>Layer</td><td><a href="/pages/3j57sIQWIHtYDfVyTr0d">OvrInt</a></td><td>Layer</td></tr><tr><td>TimeOffset</td><td><a href="/pages/XQfQFoPQbUdpQHI6RGlQ">OvrFloat</a></td><td>Normalized time offset</td></tr><tr><td>TransitionTime</td><td><a href="/pages/XQfQFoPQbUdpQHI6RGlQ">OvrFloat</a></td><td>Normalized transition time</td></tr></tbody></table>

![Example of crossfading initial state.](/files/ya4003MFrXfzqxmlGiY6)

#### Set Layer Weight

Sets the weight of the layer at the given index.

{% hint style="info" %}
**Note**: the following attributes are added to the existing ones from the super class [OvrNode](/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/ovrnode.md)
{% endhint %}

<table><thead><tr><th width="205.7659040188865">Name</th><th width="215.94102357420294">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Animator</td><td><a href="https://docs.unity3d.com/ScriptReference/Animator.html">Animator</a></td><td>Unity Animator Component</td></tr><tr><td>ActionType</td><td><a href="/pages/bLPX6RdKhk5HbAxejUaD">OvrAnimatorActionType</a></td><td>Action type [<a href="/pages/bLPX6RdKhk5HbAxejUaD">SetLayerWeight</a>]</td></tr><tr><td>LayerIndex</td><td><a href="/pages/3j57sIQWIHtYDfVyTr0d">OvrInt</a></td><td>Layer</td></tr><tr><td>Weight</td><td><a href="/pages/XQfQFoPQbUdpQHI6RGlQ">OvrFloat</a></td><td>Normalized time offset</td></tr></tbody></table>

![Example of setting a new weight for a layer.](/files/1SnFV0NqnVm5FPjRhdPa)

#### Set Look At Position

Sets the look at position in [OvrVector3](broken://pages/RdSYLaHgUS9lLUtsxjZL).

{% hint style="info" %}
**Note**: the following attributes are added to the existing ones from the super class [OvrNode](/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/ovrnode.md)
{% endhint %}

<table><thead><tr><th width="205.7659040188865">Name</th><th width="215.94102357420294">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Animator</td><td><a href="https://docs.unity3d.com/ScriptReference/Animator.html">Animator</a></td><td>Unity Animator Component</td></tr><tr><td>ActionType</td><td><a href="/pages/bLPX6RdKhk5HbAxejUaD">OvrAnimatorActionType</a></td><td>Action type [<a href="/pages/bLPX6RdKhk5HbAxejUaD">SetLookAtPosition</a>]</td></tr><tr><td>LookAtPosition</td><td><a href="/pages/YKgJhI2mhTDnKx0wgx3s">OvrVector3</a></td><td>Look at position</td></tr></tbody></table>

![Example of setting a new look at position.](/files/BeclKnWocgbf7PuRBeLC)

#### Set Target

Sets an AvatarTarget and a TNormalizedTime for the current state.

{% hint style="info" %}
**Note**: the following attributes are added to the existing ones from the super class [OvrNode](/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/ovrnode.md)
{% endhint %}

<table><thead><tr><th width="205.7659040188865">Name</th><th width="215.94102357420294">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Animator</td><td><a href="https://docs.unity3d.com/ScriptReference/Animator.html">Animator</a></td><td>Unity Animator Component</td></tr><tr><td>ActionType</td><td><a href="/pages/bLPX6RdKhk5HbAxejUaD">OvrAnimatorActionType</a></td><td>Action type [<a href="/pages/bLPX6RdKhk5HbAxejUaD">SetTarget</a>]</td></tr><tr><td>TargetIndex</td><td><a href="https://docs.unity3d.com/ScriptReference/AvatarTarget.html">AvatarTarget</a></td><td>The avatar body part queried.</td></tr><tr><td>TNormalizedTime</td><td><a href="/pages/XQfQFoPQbUdpQHI6RGlQ">OvrFloat</a></td><td>The current state Time.</td></tr></tbody></table>

![Example of setting a Target.](/files/R03AVURF2AWkl8Q9s7nD)

#### Set Value

Sets the value of the given parameter. The value type will vary, based on the action selected.

{% hint style="info" %}
**Note**: the following attributes are added to the existing ones from the super class [OvrNode](/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/ovrnode.md)
{% endhint %}

<table><thead><tr><th width="205.7659040188865">Name</th><th width="215.94102357420294">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Animator</td><td><a href="https://docs.unity3d.com/ScriptReference/Animator.html">Animator</a></td><td>Unity Animator Component</td></tr><tr><td>ActionType</td><td><a href="/pages/bLPX6RdKhk5HbAxejUaD">OvrAnimatorActionType</a></td><td>Action type [<a href="/pages/bLPX6RdKhk5HbAxejUaD">SetInteger</a>, <a href="/pages/bLPX6RdKhk5HbAxejUaD">SetFloat</a>, <a href="/pages/bLPX6RdKhk5HbAxejUaD">SetBool</a>]</td></tr><tr><td>ParameterName</td><td><a href="/pages/hEy95hRg3wjBzAXRcqWL">OvrString</a></td><td>Parameter name.</td></tr><tr><td>Value</td><td>[<a href="/pages/3j57sIQWIHtYDfVyTr0d">OvrInt</a>, <a href="/pages/XQfQFoPQbUdpQHI6RGlQ">OvrFloat</a>, <a href="/pages/TmRWpo9aKcoyy2mh7Rts">OvrBool</a>]</td><td>Value to set.</td></tr></tbody></table>

![Example of setting an int parameter.](/files/B9CbznG7Sb5sX1Ll79Nv)

#### Unity Action

Execute the assigned UnityAction. Use this Type to directly access the functions made available by Unity in the specific component.

{% hint style="info" %}
**Note**: the following attributes are added to the existing ones from the super class [OvrNode](/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/ovrnode.md)
{% endhint %}

<table><thead><tr><th width="205.7659040188865">Name</th><th width="215.94102357420294">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Animator</td><td><a href="https://docs.unity3d.com/ScriptReference/Animator.html">Animator</a></td><td>Unity Animator Component</td></tr><tr><td>ActionType</td><td><a href="/pages/bLPX6RdKhk5HbAxejUaD">OvrAnimatorActionType</a></td><td>Action type [<a href="/pages/bLPX6RdKhk5HbAxejUaD">UnityAction</a>]</td></tr><tr><td>UnityAction</td><td>UnityAction</td><td>UnityAction to be invoked</td></tr></tbody></table>

![](/files/jYgc7lHwgF6VqT362iZl)
