@@ -105,6 +105,20 @@ public static Tween To<S>(S source, TweenGetter<S, int> getter, TweenSetter<S, i
105105 public static Tween To < S > ( S source , TweenGetter < S , long > getter , TweenSetter < S , long > setter , long endValue , float duration ) =>
106106 To ( Interpolation . _long , source , getter , setter , endValue , duration ) ;
107107
108+ /// <summary>
109+ /// Creates a tween that animates a parameter to a given end value over
110+ /// a set duration.
111+ /// </summary>
112+ /// <typeparam name="S">The type of object to tween.</typeparam>
113+ /// <param name="source">The source object to tween.</param>
114+ /// <param name="getter">The function that gets the current value of the parameter.</param>
115+ /// <param name="setter">The function that sets a new value of the parameter.</param>
116+ /// <param name="endValue">The end value of the parameter.</param>
117+ /// <param name="duration">The duration of the tween.</param>
118+ /// <returns>A new tween that animates the parameter.</returns>
119+ public static Tween To < S > ( S source , TweenGetter < S , short > getter , TweenSetter < S , short > setter , short endValue , float duration ) =>
120+ To ( Interpolation . _short , source , getter , setter , endValue , duration ) ;
121+
108122 /// <summary>
109123 /// Creates a tween that animates a parameter to a given end value over
110124 /// a set duration.
@@ -304,6 +318,20 @@ public static Tween From<S>(S source, TweenGetter<S, int> getter, TweenSetter<S,
304318 public static Tween From < S > ( S source , TweenGetter < S , long > getter , TweenSetter < S , long > setter , long endValue , float duration ) =>
305319 From ( Interpolation . Lerp , source , getter , setter , endValue , duration ) ;
306320
321+ /// <summary>
322+ /// Creates a tween that animates a parameter from a given end value to
323+ /// the current value over a set duration.
324+ /// </summary>
325+ /// <typeparam name="S">The type of object to tween.</typeparam>
326+ /// <param name="source">The source object to tween.</param>
327+ /// <param name="getter">The function that gets the current value of the parameter.</param>
328+ /// <param name="setter">The function that sets a new value of the parameter.</param>
329+ /// <param name="endValue">The end value of the parameter.</param>
330+ /// <param name="duration">The duration of the tween.</param>
331+ /// <returns>A new tween that animates the parameter.</returns>
332+ public static Tween From < S > ( S source , TweenGetter < S , short > getter , TweenSetter < S , short > setter , short endValue , float duration ) =>
333+ From ( Interpolation . Lerp , source , getter , setter , endValue , duration ) ;
334+
307335 /// <summary>
308336 /// Creates a tween that animates a parameter from a given end value to
309337 /// the current value over a set duration.
0 commit comments