Hi All,
I updated to unity 4.1 last week and noticed a few of my scripts were playing up. It seems to be related to when I use the yield function,
This for instance will never print 2 in some cases (and I don’t receive any errors).
Thanks guys,
I’m using UnityScript and I’m pretty sure the timescale hasn’t been modified.
This is a project that I’ve been working with for two years and the it wasn’t having this problem in unity 4.0.
I’ll have to start stripping things back and see if I can make a simplified version that replicates the issue.
I think i finally figured this out!
If you start a coroutine from a script that is on an object that you deactivate or destroy it will never finish. Im sure this was not the case pre 4.1.