I’m trying to begin GUI programming. Using this:
function OnGUI () {
if (GUI.Button (Rect (10,10,150,100), "I am a button")) {
print ("You clicked the button!");
}
}
results in Assets/Scripts/GUI.js(2,17): BCE0019: 'Button' is not a member of 'GUI'. I tried a similar script (crosshairs) from FPS Tutorial 1, and got a similar error (DrawTexture is not a member of GUI). What is going on?