alright so i just started making a simple GUI script for my own testing purposes, and for some reason when i run this script:
function OnGUI () {
if(GUI.Button(Rect(10,10,100,50),"Pillar")){
print("Pillar Selected");
}
if(GUI.Button(Rect(10,60,100,50),"Wall")){
print("Wall Selected");
}
}
it refuses to work, i get an error saying: "BCE0019: 'Button' is not a member of 'GUI'." what am i missing?