Open fundaypreben opened 3 years ago
This was followed by this error:
Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?) The following scene GameObjects were found: [DOTween]
the same happens in v1.2.632
Got 3 almost identical errors when leaving playmode in editor.
DOTween v1,2,420 DOTween errors:
DOTWEEN ► Error in RemoveActiveTween (totActiveDefaultTweens < 0). It's been taken care of so no problems, but Daniele (DOTween's author) is trying to pinpoint it (it's very rare and he can't reproduce it) so it would be awesome if you could reproduce this log in a sample project and send it to him. Or even just write him the complete log that was generated by this message. Fixing this would make DOTween slightly faster. Thanks. UnityEngine.Debug:LogWarning (object) DG.Tweening.Core.Debugger:LogWarning (object,DG.Tweening.Tween) DG.Tweening.Core.Debugger:LogRemoveActiveTweenError (string,DG.Tweening.Tween) DG.Tweening.Core.TweenManager:RemoveActiveTween (DG.Tweening.Tween) DG.Tweening.Core.TweenManager:Despawn (DG.Tweening.Tween,bool) DG.Tweening.TweenExtensions:Kill (DG.Tweening.Tween,bool) SkateHeaven.Character.CharacterEffectsSystem:OnDestroy () (at Assets/Scripts/Character/CharacterEffectsSystem.cs:243)
DOTWEEN ► Error in RemoveActiveTween (totActiveTweens < 0). It's been taken care of so no problems, but Daniele (DOTween's author) is trying to pinpoint it (it's very rare and he can't reproduce it) so it would be awesome if you could reproduce this log in a sample project and send it to him. Or even just write him the complete log that was generated by this message. Fixing this would make DOTween slightly faster. Thanks. UnityEngine.Debug:LogWarning (object) DG.Tweening.Core.Debugger:LogWarning (object,DG.Tweening.Tween) DG.Tweening.Core.Debugger:LogRemoveActiveTweenError (string,DG.Tweening.Tween) DG.Tweening.Core.TweenManager:RemoveActiveTween (DG.Tweening.Tween) DG.Tweening.Core.TweenManager:Despawn (DG.Tweening.Tween,bool) DG.Tweening.TweenExtensions:Kill (DG.Tweening.Tween,bool) SkateHeaven.Character.CharacterEffectsSystem:OnDestroy () (at Assets/Scripts/Character/CharacterEffectsSystem.cs:243)
DOTWEEN ► Error in RemoveActiveTween (totActiveTweeners < 0). It's been taken care of so no problems, but Daniele (DOTween's author) is trying to pinpoint it (it's very rare and he can't reproduce it) so it would be awesome if you could reproduce this log in a sample project and send it to him. Or even just write him the complete log that was generated by this message. Fixing this would make DOTween slightly faster. Thanks. UnityEngine.Debug:LogWarning (object) DG.Tweening.Core.Debugger:LogWarning (object,DG.Tweening.Tween) DG.Tweening.Core.Debugger:LogRemoveActiveTweenError (string,DG.Tweening.Tween) DG.Tweening.Core.TweenManager:RemoveActiveTween (DG.Tweening.Tween) DG.Tweening.Core.TweenManager:Despawn (DG.Tweening.Tween,bool) DG.Tweening.TweenExtensions:Kill (DG.Tweening.Tween,bool) SkateHeaven.Character.CharacterEffectsSystem:OnDestroy () (at Assets/Scripts/Character/CharacterEffectsSystem.cs:243)
OnDestroy from CharacterEffectsSystem looks like this: private void OnDestroy() { flashTween?.Kill(); }