- Home /
 
 
               Question by 
               Fr0stbite · Sep 11, 2013 at 07:11 PM · 
                guiguitexturedepth  
              
 
              GUI depth?
I have script :
 function OnGUI () {
 GUI.BeginGroup (Rect (0, 0, Screen.width,Screen.height));
 GUI.DrawTexture(Rect(0,0,Screen.width,Screen.height),mp_mars);
 GUI.EndGroup ();
 }
 
               it's make a GUI.Texture and i have a gameobject what i want to place front of the Texture. Is it possible?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by FrimaMickD · Sep 11, 2013 at 07:14 PM
You can probably follow this:
http://answers.unity3d.com/questions/253790/how-to-use-graphicsdraw-draw-a-texture-behind-othe.html
yeah, but i made the texture with script and not from the inspector - Add Gameobject menu
You can make a GUITexture at runtime with your created texture. In short, there is no way to have gameobject over the GUI, but you can yourself create a "3d GUI" that will still look like what you want. Read on RenderTarget, could be helpful to you!
Your answer