- Home /
Unity becomes unresponsive when I begin play mode
I am trying to make a bullet hell shooter but I have gotten to the point where Unity becomes unresponsive whenever I begin test play and I have to force quit the application (I am working on a Mac). I've been getting more freezes lately after making minor changes, but after just slightly editing a few scripts (basically adding code that changed some public variables) and it has gotten to the point where if I press the play button I have to restart Unity. I really haven't made any major changes since the freezing started so I am very unsure what is going on. Has anyone had a similar problem or no of a common error that results in this or anything like that?
Unity does that when it runs into an infinite loop. Try checking your code for possible (logical) mistakes, or post your code so we can help you more.
did you check infinite loop in your scripts , the most common reason for a program to freeze !!
Answer by yanivng · Sep 28, 2017 at 05:23 AM
It is most probable that your code goes into an infinite loop. You can try putting some breakpoints in the code and try to identify the sequence which repeats endlessly.