On my Android game I have GUI.Buttons that I would like one to always pop up infront of the bigger one since at some times a button covers half of the other GUI.Button but it doesn’t appear because its behind the bigger one, how can I make sure it always pops up infront of that GUI.Button, Please and Thankyou in advance.
If the buttons are all in the same OnGUI() function, thet’re drawn in the order they appear in your code. The last one is drawn on top of all the others. This makes it hard to handle overlaps because you want to intercept the top button, not the bottom. Joe Strout and some others posted a solution here.
If your buttons are in different OnGUI() functions (that is, different scripts), use GUI.depth to specify their rendering order.
You can also wrap controls in GUI.Window, which prevents click-through to lower controls.