Demigiant Forum
Unity Assets => DOTween & DOTween Pro => Topic started by: Nooh on October 09, 2015, 10:33:33 AM
-
Hi
I'm using :
[Unity 5.2.0, DOTween Last ver and DoTween pro 0.9]
In same project
My q is :
My game crash in iphone when the movment or rotate or scale or path finished tweening ! , some time if it don't crash it play tween once and dont replay in all other scene !! The debug talk about sequance reach MAX , how can i solve this and make movment or any tween work normaly without crash ??!!
Note : i using tween with attatch to prefabs not by cod , also can i remove free ver of DoTween folder from my project or its importent to pro to work ?
-
Hi,
You can increase the max number of tweens/sequences by calling DOTween.SetTweensCapacity (http://dotween.demigiant.com/documentation.php?api=SetTweensCapacity).
About the free version, you definitely need it because it's the core of DOTween Pro. But please check that you don't have multiple installs of the free/core version, because DOTween Pro already contains it in its install folders.
-
the exact green message in the log is :
DOTWEEN :: REPORT > Max overall simultaneous active Tweeners/Sequences: 5/0
and this warning also :
DOTWEEN :: Null Tween
and now error msg appear in the log :
in : DOTween.Init(true, true, LogBehaviour.Verbose).SetCapacity(2000, 100);
i put this line in the start func in all scene , also no replay any mov or rotate or scale or path , just once before this msg !!
-
Ooops !!
i do some mistake
i call tween when it disable
i remove all dotween code
the problem now is :
i put cube and add rotate tween to it
i add other scene
when i play game the cube rotate normaly in loop
when i go to other scene and back to 1st scene , the cube stop rotate !!!
-
Sorry the problem not in DoTween
the problem was in loading screen plugin (Mad Level Manager )
its kill [DOTween] object in run time !!
i tell him dont kill [DOTween] object and the problem solved
thank you.
-
Sorry for the late reply, and glad you solved it in the meantime.
Could I ask you more info about why Mad Level Manager was killing DOTween? DOTween's gameObject is set to "don't destroy on load", so it should be persistent.
Cheers