When the capture screenshot button is pressed, set a variable to say that a screen capture has been requested. In the next `OnGUI()` use this variable to decide whether to display the GUI or not. Maybe do the capture in an `OnPostRender()`.
↧