- Home /
Question by
Jason Hamilton · Jun 27, 2010 at 02:49 AM ·
javascriptgui3dtext
Changing 3d text through script
hey, I know how to create 3d Text, and basic GUI, but how do I go about changing what is written in the 3d text? like a score, and when (A) happens you get (+B) onto your score.
P.S. is it possible to stop GUI from moving depending on the resolution of my game?
Comment
Best Answer
Answer by qJake · Jun 27, 2010 at 03:28 AM
Sure, just use GUIText.text.
And please don't ask more than one question in a single post (read the FAQ).
how do I use this? this is what I got but its telling me "cannot convert 'int' to 'string'"
var Score : int = 0;
function Update () { guiText.text = Score; }
var Score : int = 0;
function Update () { Score.ToString(); guiText.Text = Score; }
still dojjy, does the guiText.text go inside that?