function OnGui(){
if(gui == true){
GUI.Label (Rect (Screen.width - 50, Screen.height - 11, 100, 22), “moneyT”);
}
}
gui is always true, it doesn’t display the label i don’t know why.
function OnGui(){
if(gui == true){
GUI.Label (Rect (Screen.width - 50, Screen.height - 11, 100, 22), “moneyT”);
}
}
gui is always true, it doesn’t display the label i don’t know why.
function OnGUI(){ //GUI needs to be capitalizeed
if(gui == true){ //Make sure you have ‘gui’ defined in your code somewhere
GUI.Label (new Rect(Screen.width - 50, Screen.height - 11, 100, 22), “moneyT”); //I put “new” in front of Rect
}
}
//Also, once this thing will load, and if it still doesn't show up, try editing it's position. :P
also you dont need to do (gui == true)
just make gui a boolean and set it to false or true. then go
if (gui) {
//this means true.
}
else {
//this is false.
}
you can also do
if (!gui) {
}
but for javascript do the == instead.
also make sure its in caps: OnGUI