Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

GUIText Questions

Discussion in 'Immediate Mode GUI (IMGUI)' started by tomtomh5, Nov 24, 2014.

  1. tomtomh5

    tomtomh5

    Joined:
    Oct 7, 2014
    Posts:
    39
    Hi all, possibly a bit broad but I don't know how to word it.
    But, how can I make GUIText appear 10 seconds after the scene loads. I want to give instruction to the play of their objective (e.g like in call of duty where it says "Eliminate all enemies"). And disappear after another 10 seconds?
    And also GUIText that appears when entering a trigger, and disappearing after a 10 seconds, not when exiting the trigger?

    Help would be appreciated.

    -Tom.
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Use coroutines, with yield WaitForSeconds.

    --Eric
     
  3. tomtomh5

    tomtomh5

    Joined:
    Oct 7, 2014
    Posts:
    39
    Thanks for the speedy reply. I'll look into it. Any tutorials you know of?

    -Tom.