![alt text][1]
[1]: http://answers.unity3d.com/storage/temp/1409-1024.jpg
The button size (10,10) is tiny. You can see a (10,10) button in the top corner of this 1024x768 screenie.
Try making it bigger, that will make it easier to spot. Also if you are using a gui skin, check to see if you haven't accidently set the button alpha value all the way down and made it transparent.
Make sure that the button code is inside an OnGUI function in your script:
void OnGui{
if (GUI.Button(Rect(10,10,10,10),"Forward")){
//do something
}
}
If you are using c# that will need to read:
if (GUI.Button(new Rect(10,10,10,10),"Forward")){
Hope that helps.
↧