GUI Problem (69015)

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 :frowning:

help meeeeeeee

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?

1 Answer

1

GUIText is behind GUITexture and i want it to be written on the GUITexture, i’ll show you the picture:
alt text

note: GUIText is object and GUITexture is written with scripts

pls help mee!!