c# - GUIText is behind GUITexture -


first off have looked around , can see many posts , point towards z position of text, have changed minus , positive , text drawn behind guitexture.

so have setup

my gui has 4 text boxes

score lives level time 

now have object called gamemanager uses code below draw 2 gui sprites

void ongui()     {         float screenheight = screen.height / 12f * 1.5f;         gui.drawtexture (new rect (0, 0, screen.width * 2, screenheight), textureband);         gui.drawtexture (new rect (0, screen.height - screenheight, screen.width * 2, screenheight), textureband);     } 

however ever text drawn below guitexture can never see text, little one.

if you're drawing same location, need specify depth of each draw make sure they're sorted correctly. take @ unity docs here:

http://docs.unity3d.com/scriptreference/gui-depth.html

set higher depth value textures want drawn further (behind text) so:

gui.depth = 1;