Quantcast
Channel: Answers for "Can the Unity editor break out of an infinite loop in a script?"
Browsing latest articles
Browse All 39 View Live
↧

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 Article


Answer 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 Article


Answer 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 Article

Answer by banreaxe

You should write a script to check your code for infinite loops first just in case..

View Article

Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article

Answer 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

Browsing latest articles
Browse All 39 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>