void onGUI()
{
Rect r=new Rect(10,10,150,100);
if(GUI.Button(r,"I am a button"))
{
print("You clicked the button!");
}
}
I've added script containing the code above to a object on scene,camera,but the button does not show.Why?
↧