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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Cannot set iPad resolution

Discussion in 'iOS and tvOS' started by vandenberg-thijs, Aug 27, 2014.

  1. vandenberg-thijs

    vandenberg-thijs

    Joined:
    Jul 31, 2013
    Posts:
    13
    Hello,

    I used to be able to set the resolution of my game in the player settings, but when I now run it on an iPad 4, it always runs at full retina. I've tried different quality settings, forced 768, and even went directly into DeviceSettings.mm and added the code below at bottom of the QueryTargetResolution function. Still no luck.

    Any suggestions?

    > resMult = 0.5f
    > *targetW = GetMainDisplay()->screenSize.width * resMult;
    > *targetH = GetMainDisplay()->screenSize.height * resMult;
     
  2. vandenberg-thijs

    vandenberg-thijs

    Joined:
    Jul 31, 2013
    Posts:
    13
    Ok, found it myself I think. Used time machine to revert back to an older version of my project and Unity 4.5.0. I could then select different resolutions again, both directly in the editor and by editing DeviceSettings.mm. I then upgraded to the latest version of Unity, and resolution was stuck at native again. Apparently the latest version of Unity is linking with something that sets resolution, regardless of settings. Am I really the only person who's having this problem? I'll file a bug report.
     
  3. adslitw

    adslitw

    Joined:
    Aug 23, 2012
    Posts:
    270