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

TThe type of the tween.

Parameters

tweenThe tween to assign the duration to.
durationThe duration to set.

Returns

TThe tween itself to allow for chaining.