- Home /
GUI Text For Simple Game Tutorial
I'm pretty much new here and it's been the second time I posted so far and I've been working my way around the resources provided here on Unity. However I looked into trying to display a block of text on the screen for game tutorial (ex. a FPS tutorial level where it pops up on the screen "Use W, A, S, D to walk" and such) for a certain amount of time then disappears. Can anyone point me towards a good direction?
Answer by ScroodgeM · Jul 21, 2012 at 09:24 PM
- store time when showing starts
float startTime = Time.time;
before to draw window with text, just check
if (Time.time < startTime + 5f)
this will show a window for 5 sec only
Your answer
![](https://koobas.hobune.stream/wayback/20220613074519im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
create a box that player can type in it ( only type numbers ) 1 Answer
create a box that player can type in it 1 Answer
Any fade-in/fade-out animations for GUI Text? 3 Answers
GUI Text element disappears when I am trying to change its position 1 Answer
"Press [e] to open" on stationary object when onTrigger 0 Answers