I have a button in a scene.
Can say ButtonA.
While clicking another button a popup comes.
There is a button in popup also. Say popupbutton.
While clicking on popupbutton, ButtonA works.
How can i escape from this?
I have a button in a scene.
Can say ButtonA.
While clicking another button a popup comes.
There is a button in popup also. Say popupbutton.
While clicking on popupbutton, ButtonA works.
How can i escape from this?
Use GUI.depth to determine which GUI element is on top. This requires the different GUI elements to be in separate scripts.