- Home /
Unity 5 Text: guiText.text not working.
I want to have the player's points shown on the screen while playing. I added a text box [GameObject > UI > Text] with a script attached to it (below). I used to use guiText.text = "Score: " +points; in Unity 4. But this just isn't doing anything now. Doesn't have to be the same method, but does anyone know how I can have the points shown on screen as in most games? Thanks.
var points : int;
function Update()
{
points++;
}
Comment