Demigiant / dotween

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

DOTween Pro - AnimationComponent: Animations not starting when entering Play mode in Editor #598

Open RustedGames opened 1 year ago

RustedGames commented 1 year ago

Found a bug in DOTween Pro v1.0.330 -> DOTween Animation Component, Animations not starting when entering Play mode in Editor. It is working as expected with previous v1.0.244

Demigiant commented 1 year ago

Ahoy! I just re-tested to be on the safe side, but everything works correctly here. Could you check if something else changed other than an update (like TimeScale being 0 or a call to DOTween.KillAll). If not, can you show me a screenshot of a DOTweenAnimation with this issue, so I can try to reproduce it?

RustedGames commented 1 year ago

Sure thing, Unity 2021.3.1f DOTween Pro 1.0.330 -Steps to reproduce: 1) On an empty scene add a UI Image 2) Add a DOTween Animation Component 3) Setup the Tween with AutoPlay Checked 4) Start Play mode in Unity Editor -Current result The tween is no played, need to click commit changes and restart on the DOTween Animator -Expected result Tween to play 2022-09-30_08-58-08 9831a5924eb37d21bb92fb3f99f3641f

Demigiant commented 1 year ago

Ahoy again. I just checked and it's working here. But... I see in your pic that AutoPlay is disabled. Maybe you're confusing it with "AutoPlay Only" in the preview block? That one means that in-editor (outside of play mode) preview will only preview animations set to AutoPlay, while to actually activate the AutoPlay you have to toggle the button between "AutoGenerate" and "AutoKill".

RustedGames commented 1 year ago

That's weird I actually have AutoPlay button toggled on, the one between AutoGenerate and AutoKill, and that's the reason is greyed out. I have the same configuration with the previous version and it worked. I can't record the whole process with Gyazo, Unity takes more than the free 7 seconds just loading Play mode