x


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?

more ▼

asked Jun 27 '10 at 02:49 AM

Jason Hamilton gravatar image

Jason Hamilton
445 68 73 80

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Sure, just use GUIText.text.

And please don't ask more than one question in a single post (read the FAQ).

more ▼

answered Jun 27 '10 at 03:28 AM

qJake gravatar image

qJake
11.6k 43 78 161

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; }

Jun 27 '10 at 06:54 AM Jason Hamilton

Score.ToString()

Jun 27 '10 at 07:32 AM qJake

var Score : int = 0;

function Update () { Score.ToString(); guiText.Text = Score; }

still dojjy, does the guiText.text go inside that?

Jun 27 '10 at 07:42 AM Jason Hamilton

never mind I got it!

Jun 27 '10 at 11:45 AM Jason Hamilton
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5054
x3669
x3444
x550
x453

asked: Jun 27 '10 at 02:49 AM

Seen: 3080 times

Last Updated: Jun 27 '10 at 02:49 AM