Quantcast
Channel: Answers for "Can the Unity editor break out of an infinite loop in a script?"
Viewing all articles
Browse latest Browse all 39

Answer by LeetRooster

$
0
0
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 offers up an important thread to the user code (which way be responsible for rendering the UI as well, which would explain the hanging. I feel like this could be fixed in Unity. Though maybe they are dealing with some edge cases since you can write scripts which add components to the UI. But you could imagine an MVC setup that would work better and still render the UI on a different thread than user code. It seems very strange to me that it does this. Its not like you have to force quit eclipse if you write an inf loop in your java code.

Viewing all articles
Browse latest Browse all 39

Trending Articles



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