I am trying to make a game where ou have to move your character around a maze and collect pickups. My points system however is currently using print and i am trying to make a gui displaying the points. Thanks
Try GUI.Label
function Update () {
guiText.label = n.someGlobal;
}
//that is my current code. says label is not part of guiText
GUIlayout is rather nice when you need multiple outputs.
Check this Box for instance.
http://unity3d.com/support/documentation/ScriptReference/GUILayout.Box.html
Okay, so you want to keep guitext.
I just looked its reference up:
http://unity3d.com/support/documentation/ScriptReference/GUIText.html
First property mentions “text to display”… the property is .text
So you assign it like this:
{
guiText.text = Global.score.toString();
}