GUI won't display to screen.

Hi,

I have a simple JS file that is supposed to display a basic GUI. I’m part of a team making a 3D third person platformer.

The script, HUD.js, looks like this:

var position: Rect;
var text: String; 
function onGUI()
{
	GUI.Box (position, text);
	GUI.Button(Rect(10,10, 200, 100), "Button!");
}

To test it, I have created an Empty Game Object called HUD, and attached this script to it. I edit the variables in the inspector panel. When I run the game, the GUI doesn’t appear though.

Now, I originally named this script and the Game Object GUI, but then I was getting errors with another script that controls water, and saw that that script has a function called OnInspectorGUI, with some code that changes the water reflection if this condition is met: if (GUI.changed){...}

Why isn’t my GUI displaying? Is the aforementioned other script interfering with it?

OnGUI() cap O on the front