Compiling at runtime never works

I don’t know about anyone else, but I’m always forgetting to stop my game before making code changes. Upon returning to the editor, Unity attempts to re-compile. If I’m not fast enough to stop playing, then the whole editor locks while it prepares the enormous list of errors following its failed compilation attempt.

This happens EVERY time.

What is the point of having a feature like this when it never works. I have never, not once, been able to return to the game after making code changes without unity crashing.

I have also just lost 1 hour of work because of this. All my values I had changed in my animation controllers are gone. Awesome. All because Unity tried to recompile my game while running.

Can I turn this “feature” off for when in runtime? I still want it to compile my scripts when outside of play mode.

I have little code experience. But the editor works for me most of the time ( I use C# and Mono Unity 4).
If i think the change is radical, I pause playing, make the changes and then continue playing.
So in my case , is stable and I make small changes at the time. As for example changing values only. I never create new variables at run-time.

I never had this problem and I do it alot…

Having a “recompile at runtime” toggle in the preferences would be ideal. Everyone wins.