dentedpixel / LeanTween

LeanTween is an efficient animation engine for Unity
608 stars 135 forks source link

Final value is not quite target value #153

Open ghost opened 4 years ago

ghost commented 4 years ago

Notice this a lot with Scaling but also in positions.

For example, LeanTween.scale(gameObject, Vector3.one, 0.75f).setEaseOutExpo();

I have to add LeanTween.scale(gameObject, Vector3.one, 0.75f).setEaseOutExpo().setOnComplete(()=> { gameObject.transform.localScale = Vector3.one; }); to guarantee it's set to scale 1.