Stop clicking through a GUI window


I have a GUI menu in a game I’m working on for IOS. One of the buttons opens a GUI window which fills the screen, loads ontop of the menu and has its own set of buttons. My problem is I am able to click through the GUI window and select one of the buttons in the menu. Is the any way to stop this.

I sure there is a simple solution to this.


Add a variable that is set false when you open the second window and test against it in the menu.

Physic things won’t stop the GUI from being clicked, unless you are using GUITexture / Text and OnMouse…().

You’ll need a reference to the script displaying the menu GUI so you can disable it when the window is opened. You don’t to draw things you won’t see.