Make a GUI stay on top

Hi again! :smiley:

I have some GUI’s that go over each other because they appear in the same positions, but there are some with more priority than others, is there a way to make one GUI appear above all the others? Like a z-index/z-buffer where I can say A stays over B, and C stays over A (therefor over B too).

Thanks again!

If you’re talking about OnGUI code, you can use GUI.depth, but it only has an effect between different OnGUI functions in different scripts. It has no effect when used in a single OnGUI function.