i have those 2 script in one scene: why is the text “test” not above the the image?
It is behind, how can I change this?
var itemTexture : Texture2D;
function OnGUI () {
GUI.depth = 0;
GUI.DrawTexture (Rect (0, Screen.height * 0.94, Screen.width, 20), itemTexture);
}
function OnGUI(){
GUI.depth = 1;
if (GUI.Button (Rect (100, Screen.height * 0.9, 100, 40), "test"))
{
Application.LoadLevel("002");
}