Demigiant / dotween

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

Tweens are not working when Reload Scene is turned off, and I launch the scene for the second time #625

Open whiskeY11 opened 1 year ago

whiskeY11 commented 1 year ago

I'm on dotween latest, 1.2.705 For some reason, when I have disabled Reload Scene in Project Settings -> Editor, DoTween GameObject sometimes breaks and none of the tweens work anymore.

I noticed this behaviour:

  1. I launch the game, everything is fine -> Dotween GO is in DontDestroyOnLoad.
  2. After that I load next scene and turn off the game immediately.
  3. Next time I launch the game -> first scene, Dotween GO is not in DontDestroyOnLoad anymore but in the scene itself, and any tween passed into it is not working anymore. I can still see the Tweens inside the DoTweenComponent, but they are not running anymore.

Turning on Reload Scene seems to fix this problem completely. But it would be nice to have this working with Reload scene turned off, as it can take some time off when testing the game.