dolyth
dolyth

Reputation: 235

Untiy LeanTween easing giving me strange results

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?

Upvotes: 0

Views: 1851

Answers (1)

Daniel
Daniel

Reputation: 1

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.

Upvotes: 0

Related Questions