TextRenderer

MissingFieldException: Cannot find variable text.
Boo.Lang.Runtime.RuntimeServices.SetProperty (System.Object target, System.String name, System.Object value) 
scoreCounter.Update ()   (at Assets/Working Assets/Scripts/scoreCounter.js:4)

I get this error from this script:

static var score = 0;

function Update () {
	GetComponent (TextMesh).text = score;
}

I don’t understand what’s going on!

Try this:

static var score = 0; 

function Update () { 
   GetComponent (TextMesh).text = score.ToString (); 
}

Wow Daniel, does your helpfulness ever cease? :smile: You’ve answered every question I posted today!

Thanks again!