[SOLVED] No appropriate version of 'UnityEngine.GUI.Label' for the argument list '(UnityEngine.Rect)' was found.

Hey Unity Community (haha I rhymed). What I am trying to do here is allow players to visualize the loss of health from collision with an enemy. I am having a problem with the GUI script. Here it is.

function OnTriggerEnter(other : Collider){
	if(other.tag == "Enemy"){
	health -= 10;

function OnGUI(){

All of it works until i get down to the function OnGUI. I wrote this myself, but am not a pro at scripting. Any help would be much appreciated, thanks! :smiley:

You need to include a string or texture argument with your GUI.Label() call:

GUI.Label(Rect(10,40,100,100), "Health: "+health.ToString());

OK thank you so much robertbu it works now :smiley: