- Home /
GUI Problem
i've created GUITexture with scripts: created empty gameobject and assigned script. there is the script: var finish : Texture2D;
function OnGUI () {
GUI.DrawTexture(Rect(0,0,Screen.width,Screen.height),finish);
}
then i wrote this script and assigned it to the my gameobject which i wanted: var GuiShow : GameObject;
function OnTriggerEnter(hit : Collider)
{
if(hit.gameObject.tag == "Finish")
{
GuiShow.active = true;
}
}
function Start(){
GuiShow.active = false;
}
now i have a such problem: i have GUIText in the scene and i want it to appear on this GUITexture and i have no idea how :(
Could you clarify the problem you're having? What is the current behavior of your code, and how is it different from the desired behavior? What is this GuiShow thing and what does it have to do with your problem?
Answer by lasha_an · Apr 19, 2013 at 09:42 PM
GUIText is behind GUITexture and i want it to be written on the GUITexture, i'll show you the picture:
note: GUIText is object and GUITexture is written with scripts
Your answer
Follow this Question
Related Questions
Fix Blurry UI text? 10 Answers
Appear after set number of seconds 2 Answers
Gui text, ammo counter 1 Answer