- Home /
Webplayer loses focus when leaving fullscreen?
When the webplayer is running in fullscreen and it leaves fullscreen the webplayer loses focus. I currently have a client who would like fullscreen automatically restored. However this can not happen until the webplayer gets focus again. This often requires a click or two, depending on browser, to restablish. Is there a way around this?
Answer by SomeGuy22 · Aug 24, 2012 at 07:06 PM
As far as I know, there is no way to refocus a webplayer unless the user actually clicks inside your game again. I think Unity does this to stop programs from locking the cursor infinity on a webplayer, so the user can escape if he/she wants to.
However, you can detect if the user lost focus and then tell them that they have to click to focus again. Check here for that answer.
Sorry there's no real fix to this, but I'm actually glad Unity prevents webplayers from being too powerful, otherwise you could easily create a "Unity Virus" ;)