if (GUI.Button (Rect (10,10,150,100), "I am a button")) {
print ("You clicked the button!");
}
What is this in C#? THank you.
if (GUI.Button (Rect (10,10,150,100), "I am a button")) {
print ("You clicked the button!");
}
What is this in C#? THank you.
Try inserting the keyword new just before Rect:
if (GUI.Button (new Rect (10,10,150,100), "I am a button")) {
print ("You clicked the button!");
}