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

TThe type of the tween.

Parameters

tweenThe tween to enable snapping on.
snappingTrue if interpolated values should be snapped to whole numbers.

Returns

TThe tween itself to allow for chaining.