Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Web Player fullscreen on Mac

Discussion in 'Scripting' started by AllanMSmith, May 8, 2014.

  1. AllanMSmith

    AllanMSmith

    Joined:
    Oct 2, 2012
    Posts:
    180
    Hi,

    I am developing a web game with the fullscreen functionality, and I ran into the "wrong fullscreen resolution" problem, as I've noticed a lot of people run into. The game goes fullscreen but it defaults to a 4:3 res which ends up being the Standalone default resolution, so to solve it, you can just set the default Standalone resolution to a very high value such as 8000x6000 and Unity will eventually find the right resolution you are currently using.

    HOWEVER... this does not work on Mac, unfortunately =/. Any OTHER way to solve this problem that works on mac as well?

    Thanks in advance!
    Best regards,
    Allan
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    Sure it does; I've been suggesting this technique for years and I've always been using a Mac. I have 3 different models, with 3 different OS versions, and it works on them all, in any web browser I've tried. It won't switch to a resolution higher than the desktop resolution, which is why supplying ludicrously large values works.

    --Eric
     
  3. AllanMSmith

    AllanMSmith

    Joined:
    Oct 2, 2012
    Posts:
    180
    Then let me rephrase... on MY mac it doesnt work... hahah

    I develop on a Mac and it isnt working, all I get is a 4:3 1024x768 fullscreen (using a 21,5" iMac at 1920x1080), while the exact same build, works fine on PCs...

    Edit: Using Mac OS X 10.8.5 and Chrome (Latest), or Firefox or Safari... same results
     
    Last edited: May 8, 2014
  4. uforoboso

    uforoboso

    Joined:
    Dec 11, 2013
    Posts:
    14
    That doesn't work on MY mac too.. :-/

    (and also, there is no possibility to setup standalone default resolution in build settings.. there is only a general shared default resolution setting, that actually totally disappears in the standalone tab)