help with gui please!!!

hello, i want to make a menu for my game, or something like that, but, i don’t know why, anything i do in OnGui function doesn’t work. I made an example project, and i attached this script to the camera:

#pragma strict
function OnGui (){
 GUI.Box (Rect(10,10,100,100), "box");
}

but nothing happens… I think (mostly sure) that i’m doing something wrong, but i don’t know what! So, if you could help me, that would be great
thanks a lot!!!

1 Answer

1

Mispellings and Captilizations are key to programming languages:

Try this, with GUI Capitilized

function OnGUI (){
 GUI.Box(new Rect(10,10,100,100), "This Box");
}

OMG, i wouldn't realized that! thank you very much! (ps. it worked)