2D Toolkit Forum
2D Toolkit => Support => Topic started by: Dakwamine on June 13, 2012, 12:24:58 am
-
Hi Unikron.
I was wondering what could be the reason for having DivideByZero exceptions at each frame whenever I update a script in my project in realtime (while the Play (and Pause) Button(s) is(are) pushed) in the Unity Editor. Here is the console text:
DivideByZeroException: Division by zero
tk2dAnimatedSprite.Update () (at Assets/TK2DROOT/tk2d/Code/Sprites/tk2dAnimatedSprite.cs:345)
After that, when I restart the project, there are no problems anymore until I update a script in realtime like said above.
I currently use final 1.7 + patch 2.
-
Sorry, but what do you mean by "Update a script"?
-
I mean modifying the script, then saving in MonoDevelop then return in Unity. Sorry for the lack of accuracy. :-[
I forgot to mention the Unity version: 3.5.2f2.
I use C# only scripts.
-
Mh... It seems that it is a false alarm. For some reason, the Exception has gone. :o
Anyway, thanks for your availability! You are the best. ;D
Best regards.