- Home /
Question by
KeenanPearce · Apr 10, 2013 at 04:35 PM ·
guitextwebplayerpause
Draw GUI Text if clicked out of webplayer
Hello, I've got a request in which I am trying to show a GUI text saying "PAUSED" once the player clicks out of the unity webplayer. I currently have a pause function in which when the key 'P' is pressed, the game freezes and the word "PAUSED" comes on the screen, but when you focus off the game and click out of the webplayer the game pauses, but there is no GUI Text on screen.
The question I am asking is if there is a script that checks if the player is focused on the game, and if not it will draw the GUI Text.
Comment
Your answer
Follow this Question
Related Questions
Limit on GUI Components? 0 Answers
Setting Scroll View Width GUILayout 1 Answer
Help with pausing script. 2 Answers
How to display Int variable onto the GUI/HUD 0 Answers
c# add/move lines of text in GUI box 1 Answer