How to work with GUI layers

Salutations,

I have a situation where my loading screen is being drawn behind my scene’s GUI elements. I want to know if its possible to set up my loading screen so it is drawn in front of everything else in my scene.

Oh and by the way I tried GUI.Depth and it does not work, neither does bring window forward. So I do not know what else to try.

Try playing around with the position values on the Z axis? I’ve done this before and it worked OK.

GUI.depth is indeed what you have to use. Every script can only have one GUI depth, you can’t change the depth in the middle of the OnGUI() function. So if you have your loading screen GUI code in one script, and your scene’s GUI code in another, then at the start of the loading screen OnGUI() function you put GUI.depth = 0; and at the start of the scenery GUI OnGUI() function you put GUI.depth = 1;.