Demigiant / dotween

A Unity C# animation engine. HOTween v2
http://dotween.demigiant.com
Other
2.29k stars 344 forks source link

Tween not working - Scale #652

Closed wrymn closed 10 months ago

wrymn commented 10 months ago

I am not sure whether I am doing something wrong or this is actually not working, but I have super simple tween, and its just not scaling and animating at all.

image

This tween is just not playing at all when the object gets enabled.

Demigiant commented 10 months ago

Ahoy! Everything seems good there and I replicated your settings and it worked perfectly. Things that come to my mind:

  1. Since the animation is set to start playing immediately but entering play mode in the Unity Editor causes Unity to hiccup for the first second or so (a known behaviour unrelated to DOTween but that happens only in the editor, Unity won't hiccup when starting builds), the animation plays but you don't have the time to see it. Does incresing the delay to 1.5 seconds show it?
  2. The animation is set to AutoKill, so it will automatically be disposed of after it plays the first time. And if you're using i more times you won't see anything happen because of that (in that case just disable AutoKill)
wrymn commented 10 months ago

@Demigiant my bad, I did not notice the auto kill got enabled by default, yeah its working fine now :) Thank you for pointing this out.