What to do when Unity crashes.

I have been debugging my scripts in my game, and all of a sudden Unity decides to crash every time a certain event occurs in my game. The event is rather complex and difficult to analyze, and to make matters worse, unity does not show any debug problems before running the game, and does not give any info when it crashes. This leaves me completely in the dark.

The best way you could help, is by telling me your experiences with crashes, and how you fixed them, so I know what to look for in my code.

Thanks,

MTracer.

I just stand up and turn around three times and it works. :smile:

When Unity loads disable some scripts to see what script it is that makes it crash. When you find the script. multi line comment sections of the script till it no longer crashes. Then comment each line till no crash. :smile: That works for me every time. 8)

Use yields if you can – that will give you enough time to glance at debug data, and more importantly where the debug text came from.

Never used it, but would the debug.txt record even if it crashes?