Answer by boymeetsrobot
I think it would be better to avoid an infinite loop as it is likely to make most IDE's hang (at least temporarily).
View ArticleAnswer by duck
Short answer - unfortunately, no - if you have already got Unity frozen in an infinite loop, your only option is to force-quit.However, this question makes me wonder why you're putting an infinite loop...
View ArticleAnswer by Proclyon
With all due respect, you should not even be trying to do such a thing with the engine, but with the code. I know it's really annoying when somebody won't answer your question. But I'm just trying to...
View ArticleAnswer by banreaxe
You should write a script to check your code for infinite loops first just in case..
View ArticleAnswer by CB-TV
Hey, hey, hey! I broke out of it-i think. I was soo pissed off when I pressed play and Unity just stopped working. I froze and my whole computer was going slow for about 10 minutes. Then, I tried to...
View ArticleAnswer by JaredThomson
I know it's an old question but I do have a better solution. As others have said: don't use an infinite loop by design. However if you did it by mistake and don't want to loose a whole scene or other...
View ArticleAnswer by LeetRooster
Yea, but in this case the unity editor shouldn't freeze up and force you to force quit the application. You ought to be able to hit a button in unity to stop the script. I guess for some reason unity...
View ArticleAnswer by FamerJoe
I know this is an old question, but this is the answer: -Open mono -Attach, set breakpoint where the infinite loop is occuring -Open Local variables -Alter the value of the variable causing the loop...
View ArticleAnswer by MvD
We've also already had this as an old answer ;) Yes, this will work, as long as you know where in the code the infinite loop is happening, which, if you pause debugging in Monodevelop and check out the...
View ArticleAnswer by Stephanie The Viking
Apologies for the slightly off-topic response. However, when people get into an infinite loop and think they've lost their scene and come looking for help on this thread, this will be most useful to...
View ArticleAnswer by TJS
BTW i just did this: for (int x = 0; x < columns + 1 ; x++) { // loop x for (int y = 0; x < rows + 1 ; y++) { // loop y ^ | And my ram got to 100% and i got a blue screen of dead. (windows 8.1 -...
View ArticleAnswer by Will-H
Hi @MvD ! Yes, it's possible with a plugin that I created which breaks infinite loops through a single shortcut. With it, just press Shift+Esc and the editor is responsive again in a flash. - You can...
View ArticleAnswer by GilesDMiddleton
There is a way to save your scene before killing the app. If you can get a breakpoint in your infinite loop, by attaching the debugger, type this in the immediate window.....
View Article