I want to make a background image by drawtexture

I want to make a login form and form’s background image.(not a box, entire background image)
I made a button and box by GUI.Box and GUI.button. After the work, I make a GUI Texture on editor.

On a script I set the value like this.

GUI.DrawTexture(new Rect(0,0,Screen.width,Screen.height),backimg,ScaleMode.StretchToFill,true)

Then I set the image what I want to use form’s background image. And make another camera, setting depth -1 and main camera’s depth 1. Both of camera’s clear flag is Depth Only.

But the image cover the login form. I want to show the image on a most backward.
Please help me!!

The depths of cameras control the order in which the cameras render, but UnityGUI isn’t rendered with your own scene’s cameras, so changing the depths of those has no effect on OnGUI calls. You control the draw order of elements declared in OnGUI functions with GUI.depth, instead.

See this link:

And follow the example in that.