PropertyChaining.SetDuration<T>
Extension Method in PropertyChaining
Declaration
public static T SetDuration<T>(this T tween, float duration)
where T : Tween
Description
Sets the duration of the tween to the given value.
Type Parameters
T | The type of the tween. |
Parameters
tween | The tween to assign the duration to. |
duration | The duration to set. |
Returns
T | The tween itself to allow for chaining. |