- Home /
Question by
Zachary Hoffman · May 06, 2014 at 02:27 AM ·
fullscreenweb browser
Unity Web Player Default to Full Screen
I tried looking this up online but all I seemed to get is that if you right click it will let you go to full screen.
The problem with right clicking to go to full screen is that most users will not know to do that intuitively.
What I want to know is how to get the web player to default to full screen when you open the application.
Is this possible??
Comment
Answer by thornekey · May 06, 2014 at 02:56 AM
You could have a button in a settings panel saying "Full Screen", then set it like this:
Screen.SetResolution( Screen.currentResolution.width, Screen.currentResolution.height, true );
Thanks! I figured that out after a bit of research :) It seems like Unity doesn't allow you to change it until after the player clicks on the scrren
Your answer
