I have done some scripting in javascript and have had a GUI working fine. I am now trying to move over to C#. I cannot seem to get started with even the simplest of functions. Please help. What is wrong with the code below:
using System;
using UnityEngine;
public class Test : MonoBehaviour
{
void OnGUI()
{
GUI.Button(Rect(10,10,10,10),"Test");
}
}
I keep getting an error
I know i’m missing something really simple!!