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

512 Views Asked by At

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);
}
0

There are 0 best solutions below