- Home /
How do I get my GUI text to open on awake?
I have my GUI text ready, but I'm not sure how to open it on awake. When you turn on the game, I want the GUI text to be there for 5 seconds, and then disappear. Thanks
Comment
Answer by whydoidoit · Mar 23, 2013 at 10:27 AM
Do it in Start as a coroutine (please specify what language you use in your question)
JS
function Start()
{
guiText.enabled = true;
yield new WaitForSeconds(5);
guiText.enabled = false;
}
C#
IEnumerator Start()
{
guiText.enabled = true;
yield return new WaitForSeconds(5);
guiText.enabled = false;
}
No problem - could you click the tick on my answer? $$anonymous$$eeps the board clean...
Your answer
Follow this Question
Related Questions
Detect Text in GUI; Print 1 Answer
GUI text font change 3 Answers
Limit on GUI Components? 0 Answers
Using "fonts" that are actually images for a multi-outline effect. 2 Answers
Dialouge text. 1 Answer