PropertyChaining.SetLoops<T>

Extension Method in PropertyChaining

Declaration

public static T SetLoops<T>(this T tween, int loops, LoopType loopType = LoopType.Restart)
    where T : Tween

Description

Sets the number of loops of the tween to the given value.

Type Parameters

TThe type of the tween.

Parameters

tweenThe tween to loop.
loopsThe number of loops to set.
loopTypeThe type of loop style to set.

Returns

TThe tween itself to allow for chaining.