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

1 Answer

1

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

Thank you very much! That was really helpful.

No problem - could you click the tick on my answer? Keeps the board clean...