Tweening.To<T, U>
Static Method in Tweening
Declaration
public static Tween To<T, U>(Interpolater<U> interpolater, T target, TweenGetter<T, U> getter, TweenSetter<T, U> setter, U endValue, float duration)Description
Creates a tween that animates a parameter on an object to a given end value over a set duration.
Type Parameters
| T | The type of object to tween. |
| U | The type of parameter to tween. |
Parameters
| interpolater | The function that interpolates values between the start and end value. |
| target | The object to tween. |
| getter | The function that gets the current value of the parameter. |
| setter | The function that sets a new value of the parameter. |
| endValue | The end value of the parameter. |
| duration | The duration of the tween. |
Returns
| Tween | A new tween that animates the parameter. |