I need to put my text in front of my GUI.DrawTexture but it dont work, Depth dont work, Z dont work, the Texture always stay in front of the Text, code:
void OnGUI() {
aTexture = (Texture)Resources.Load("red") as Texture;
GUI.DrawTexture(new Rect(0, 0, Screen.width, 30), aTexture, ScaleMode.StretchToFill, true, 0);
}
The text I created by “rightclick → UI → Text”
Im using Unity 5