- Home /
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?
You can make it really small and change the size of it after 3 seconds or have it fly in from off screen
Answer by Mike 3 · Jul 01, 2010 at 07:38 PM
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
Which part? Also, you're using a Text$$anonymous$$esh on the object, and not another type of text renderer?
Expected ';'. add a semicolon at the end. Unexpected Token: Function Something about OnGUI.
You may want to post the code then, sounds like it's nothing to do with my code
Answer by springer · Aug 03, 2010 at 04:24 PM
for 3d text to be occulted like any other surface : use this shader http://www.unifycommunity.com/wiki/index.php?title=3DText
Your answer
Follow this Question
Related Questions
GUI Text Component Rotate ? 1 Answer
Quick help on a gui script. 1 Answer
How to change font size in ongui function 0 Answers
Why is text so boring in Unity?! 1 Answer
Check if GUI is Pressed 1 Answer