BaseAnimValue<T>
Abstract base class for Animated Values.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEditor.AnimatedValues
- Assembly: UnityEditor
- Implements: ISerializationCallbackReceiver
public abstract class BaseAnimValue<T> : ISerializationCallbackReceiver
Remarks
Animated Values are an editor only concept for values that have a current value and a target. The value will tween towards the target at a given speed.
Fields
Value | Description |
|---|---|
| speed | Speed of the tween. |
| valueChanged | Callback while the value is changing. |
Properties
Property | Description |
|---|---|
| isAnimating | Is the value currently animating. |
| target | Target to tween towards. |
| value | Current value of the animation. |
Methods
Method | Description |
|---|---|
| BeginAnimating | Begin an animation moving from the start value to the target value. |
| GetValue | Abstract function to be overridden in derived types. Should return the current value of the animated value. |
| StopAnim | Stop the animation and assign the given value. |