One GUI texture over another

Hello.

I have two GUI textures on my scene. I don’t really like Unity’s buttons because my game has pretty much same theme. I use one GUI Texture as a background and I use second as a button. When I drag the script you see under this text to my “button”, nothing happens, but when I drag it to my “background”, then “Pressed” gets printed.

Here is my code:

function OnMouseUp () {
	print ("Pressed");
//I'll write everything else when I get an answer...
}

It seams that my “background” is in front of my “button” although I can see button in front of my background. Is there any way to script this or just put my bg on a lower layer somehow.

Thank you!!!

Use the z position to set the order of GUITextures.

–Eric