Chico3001
Chico3001

Reputation: 1963

LeanTween ending on different times on same element with same time parameter

Im using LeanTween to animate an UI, the show animations works perfectly, but the hide animation is 3 times slower... any idea on what can be causing this?

My animation time is 1.5F and menuStartBtn is a RectTransform

void ShowStartMenu()
{
    LeanTween.moveY(menuStartBtn, 0.0F, animationTime).setEase(LeanTweenType.easeOutElastic);
}

void HideStartMenu()
{
    LeanTween.moveY(menuStartBtn, -192.0F, animationTime).setEase(LeanTweenType.linear);
}

Upvotes: 0

Views: 575

Answers (0)

Related Questions