Untiy LeanTween easing giving me strange results

1.7k Views Asked by At

I'm using LeanTween engine and all was going well until I tried this:

LeanTween.moveY (menuPanel, 1200f, 0.5f)
            .setEase (LeanTweenType.easeInOutBack);

The goal is to have the menu panel move down slightly before shooting up out of the screen. The easeInOutBack seemed the correct type (based on Easing Cheatsheet).

menuPanel is a GameObject UI Panel of which I declare as public and assign in the inspector.

Instead it goes a little crazy, bouncing up and down sporadically whilst moving a bit.

Has anyone observed this behaviour before, know what I'm doing wrong?

1

There are 1 best solutions below

0
Daniel On

I know this is an old question, but just in case anyone else is having similar problems - you'll need to disable the Rigidbody attached to the game object you're tweening to avoid getting unpredictable behaviour in your raycast.