x


Appear after set number of seconds

I am making a title screen, but I can't make the 3d text appear like, immediately after the laser-show finishes, or make it zoom into view. 3d text goes through all objects, so I cannot just put a cube over it and put a timed object destructor on it. What can I do?

more ▼

asked Jul 01 '10 at 07:05 PM

Not showing my name gravatar image

Not showing my name
107 8 9 19

You can make it really small and change the size of it after 3 seconds or have it fly in from off screen

Jul 01 '10 at 07:37 PM spinaljack
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Easiest way I can think of:

function Start()
{
    var textMesh : TextMesh = GetComponent(TextMesh);
    var originalText = textMesh.text;
    textMesh.text = "";

    yield WaitForSeconds(3);

    textMesh.text = originalText;
}

Alternatively, set the textmesh's text to "" by default, then just get the textmesh component when your laser show finishes, and change the text to the right text

Edit (since you changed your tags to guiText):

function Start()
{
    var originalText = guiText.text;
    guiText.text = "";

    yield WaitForSeconds(3);

    guiText.text = originalText;
}

No OnGUI necessary

more ▼

answered Jul 01 '10 at 07:38 PM

Mike 3 gravatar image

Mike 3
30.5k 10 65 252

dosen't work for some reason.

Jul 31 '10 at 09:24 PM Not showing my name

Which part? Also, you're using a TextMesh on the object, and not another type of text renderer?

Jul 31 '10 at 09:33 PM Mike 3

Expected ';'. add a semicolon at the end. Unexpected Token: Function Something about OnGUI.

Aug 03 '10 at 11:01 AM Not showing my name

You may want to post the code then, sounds like it's nothing to do with my code

Aug 03 '10 at 11:15 AM Mike 3
(comments are locked)
10|3000 characters needed characters left

for 3d text to be occulted like any other surface : use this shader http://www.unifycommunity.com/wiki/index.php?title=3DText

more ▼

answered Aug 03 '10 at 04:24 PM

springer gravatar image

springer
2 2

(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:

x3674
x313
x36
x15
x10

asked: Jul 01 '10 at 07:05 PM

Seen: 1165 times

Last Updated: Aug 03 '10 at 11:02 AM