LTDescr.setLoopClamp C# (CSharp) Method

setLoopClamp() public method

public setLoopClamp ( ) : LTDescr
return LTDescr
    public LTDescr setLoopClamp()
    {
        this.loopType = LeanTweenType.clamp;
        if(this.loopCount==0)
            this.loopCount = -1;
        return this;
    }

Same methods

LTDescr::setLoopClamp ( int loops ) : LTDescr

Usage Example

Beispiel #1
0
    private void Animate()
    {
        switch (animationType)
        {
        case UIAnimationTypes.Fade:
            tweenObject = Fade();
            break;

        case UIAnimationTypes.Move:
            tweenObject = Move();
            break;

        case UIAnimationTypes.Scale:
            tweenObject = Scale();
            break;
        }

        tweenObject.setDelay(delay);
        tweenObject.setEase(easeType);

        if (loop)
        {
            tweenObject.setLoopClamp();
        }
        if (pingpong)
        {
            tweenObject.setLoopPingPong();
        }
    }
All Usage Examples Of LTDescr::setLoopClamp
LTDescr