JohnnyGoTime

u/JohnnyGoTime


r/Unity3D•

For me using Visual Studio, I find it constantly frustrating when using breakpoints during debugging, that you can't then click around in the Editor Inspector to see the values of various objects/fields. And adding debug log outputs isn't always helpful depending on what you're trying to troubleshoot.

If that is ever frustrating for you too, here's a quick plan C...just copypaste this in where you would have put that breakpoint or log msg:

** #if UNITY_EDITOR EditorApplication.isPaused = !EditorApplication.isPaused; #endif**

This does the equivalent of hitting the editor Pause button, nothing more. So when your code gets to that critical spot, the game will just pause, meaning you ca

45