# ValueAnimation<T>

> Implementation object for transition animations.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.UIElements.Experimental](/engine/6000.3/script-reference/unityengine/uielements/experimental.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IValueAnimation](/engine/6000.3/script-reference/unityengine/uielements/experimental/ivalueanimation.md)

```csharp
public sealed class ValueAnimation<T> : IValueAnimation
```

## Constructors

| Constructor                                                                                                        | Description  |
| ------------------------------------------------------------------------------------------------------------------ | ------------ |
| [ValueAnimation\`1()](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/ctor.md) | Constructor. |

## Properties

| Property                                                                                                                            | Description                                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| [autoRecycle](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/autorecycle.md)                   | Returns true if this animation object will be automatically returned to the instance pool after the animation has completed. |
| [durationMs](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/durationms.md)                     | Duration of the animation in milliseconds.                                                                                   |
| [easingCurve](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/easingcurve.md)                   | Smoothing function related to this animation. Default value is OutQuad.                                                      |
| [from](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/from.md)                                 | The animation start value.                                                                                                   |
| [initialValue](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/initialvalue.md)                 | Callback invoked when the from field has not been set, in order to retrieve the starting state of this animation.            |
| [interpolator](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/interpolator.md)                 | Value interpolation method.                                                                                                  |
| [isRunning](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/isrunning.md)                       | Tells if the animation is currently active.                                                                                  |
| [onAnimationCompleted](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/onanimationcompleted.md) | Callback invoked when this animation has completed.                                                                          |
| [to](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/to.md)                                     | The animation end value.                                                                                                     |
| [valueUpdated](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/valueupdated.md)                 | Callback invoked after every value interpolation.                                                                            |

## Methods

| Method                                                                                                            | Description                                                                       |
| ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [Ease](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/ease.md)               | Sets the easing function.                                                         |
| [KeepAlive](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/keepalive.md)     | Will not return the object to the instance pool when the animation has completed. |
| [OnCompleted](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/oncompleted.md) | Sets a callback invoked when this animation has completed.                        |
| [Recycle](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/recycle.md)         | Returns this animation object into its object pool.                               |
| [Start](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/start.md)             | Starts the animation using this object's values.                                  |
| [Stop](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/stop.md)               | Stops this animation.                                                             |

## Static Methods

| Method                                                                                                  | Description                                                                              |
| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| [Create](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1/create.md) | Creates a new ValueAnimation object or returns an available one from it's instance pool. |
