PropertyChaining.SetSnapping<T>
Extension Method in PropertyChaining
Declaration
public static T SetSnapping<T>(this T tween, bool snapping = true)
where T : Tween
Description
Sets the tween to snap interpolated values to whole numbers.
Type Parameters
T | The type of the tween. |
Parameters
tween | The tween to enable snapping on. |
snapping | True if interpolated values should be snapped to whole numbers. |
Returns
T | The tween itself to allow for chaining. |