- Home /
When switching to Full screen on web player, i get me a 4:3 window.
When I right click and select full screen on the web player, in stead of it "filling the screen", I get a 4:3 box, with black sides. Anyway of correcting that?
Answer by Eric5h5 · Oct 06, 2012 at 08:28 PM
It's because you're setting the full-screen resolution to 1024x768 by default.
To fix this, in the player settings, change the PC/Mac standalone resolution (not the webplayer resolution) to something like 99999 width and 99999 height. This is the resolution that will be used when switching to fullscreen in the webplayer, except it will not ever actually go higher than the desktop resolution. So essentially using absurdly huge numbers here means "switch to the desktop resolution when going fullscreen in the webplayer."
Ah nice trick Eric! This solves it also. So I will only need my solution if I want to go to the lowert possible resolution with correct aspect ratio.
Aha.. fantastic!!! Now all I want to know is whether I can switch to full screen automatically, but .. I spose thats another thread?
As I mentioned in your other question, that's not possible or desirable (you don't want potentially malicious websites to have that ability).
SO$$anonymous$$E ONE HELP! WHEN I DO THIS AND GO FULLSCREEN I GET THE ERROR "Fatal Error: Could not switch to requested resolution" WTF
Isn't this what the "Default Is Native Resolution" checkbox is supposed to do?
Answer by Dragonlance · Oct 06, 2012 at 07:53 PM
Unity switches to the first resolution your monitor supports. Completely ignoring if the monitor has that aspect ratio.
I have found a solution and made a class that handles this. Check out my tutorial on my web page:
http://games.powerword.de/2012/09/unity-webplayer-full-screen-issue/
Excellent thanks... Ill check it, but it might be beyond my coding skills...
Your answer
Follow this Question
Related Questions
Web player fullscreen and focus. 0 Answers
How can i switch resolutions in fullscreen in the web player? 0 Answers
Flickering Lights in Web Player 1 Answer