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

iPhone 6 and iPhone 6 Plus resolutions support?

Discussion in 'Editor & General Support' started by fivepointsevenn, Sep 9, 2014.

  1. fivepointsevenn

    fivepointsevenn

    Joined:
    Aug 20, 2014
    Posts:
    32
    Okay, you've watched the keynote, and you want to be one of the first guys to make your game specifically for iPhone 6 and iPhone 6 Plus. The question you might ask is how to do it in Unity?
     
  2. kenlem

    kenlem

    Joined:
    Oct 16, 2008
    Posts:
    1,630
    I've been using NGUI for my GUI and it already resizes correctly on all the Android variants so I'm not worried at all about a few new screen sizes from Apple.
     
  3. fivepointsevenn

    fivepointsevenn

    Joined:
    Aug 20, 2014
    Posts:
    32
    The question is how to build them. I'm downloading new Xcode GM seed right now and Apple's server is barely breathing. I guess there will be option.
    I'll post an update for those interested.
     
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    Just refrain from hard-coding anything for a specific resolution/aspect ratio and you're fine. You can easily test this by resizing the game window to various arbitrary resolutions and making sure everything still works.

    --Eric
     
    fivepointsevenn likes this.
  5. fivepointsevenn

    fivepointsevenn

    Joined:
    Aug 20, 2014
    Posts:
    32
    I love you, man. 98% of answers found on this forum that helped me are yours.
     
  6. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    Well, clearly I have to do something about that other 2%. ;) BTW, I expect that leaving the target resolution in the player settings at "native" would just work for newer devices. If for some reason it doesn't, then Unity would be patched to fix that.

    --Eric
     
  7. fivepointsevenn

    fivepointsevenn

    Joined:
    Aug 20, 2014
    Posts:
    32
    Okay, thanks for that;)

    P.S. My project seems to run well on both iPhone 6 simulators.
     
  8. Moonjump

    Moonjump

    Joined:
    Apr 15, 2010
    Posts:
    2,571
    If you want to check in the Editor that the resolution works fine with your app, You can set custom resolutions in the Game window. Open the drop down menu on the top-left of the Game window, and the custom option is at the bottom.
     
    alarm656 likes this.
  9. HussD

    HussD

    Joined:
    Dec 2, 2013
    Posts:
    3
    I have yet to test it but as with previous resolution changes from Apple you NEED to use the newest XCode to build for the new resolutions or else your game will be scaled by the device itself and pixelate. I suppose until Unity patches this you will just have to build using Xcode 6 and manually insert a default image for the two new resolutions. This makes the device know your game already takes them into account and doesn't do any additional scaling other than what you've done inside your game.
     
  10. A_never_kill

    A_never_kill

    Joined:
    Jan 7, 2014
    Posts:
    81
    i am using unity 4.6 bita version.i didnt find any code for iphone 6 and iphone 6 plus.i am using screen.width ,screen.hieight....is there any generaion code for these device.?
     
  11. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    740
    @HussD Several issues with XCode6 have already been addressed and patched in 4.5.4p1 (patch release).

    Resolution is 1080p as also stated in my hands-on experience which works out of the box without any patches or newer releases in 4.5 and 4.6. Other problems like splashscreen, notifications, icons ect. will be released in 4.5.5p1 (next patch release).

    @A_never_kill the beta 4.6 does not include the fixes of patch release yet. But when 4.5.5 (official release) is released, it will go to the next beta release which comes after the 4.5.5 release. But most of the fixes will be released with 4.5.5p1 (patch release) which means that they go to beta after 4.5.6 (official release) was released which will take another month probably. More information on 4.6 beta releases can be found here. But Screen.width/height provides you the correct screen size anyway e.g. iPhone6+ is 1080x1920
     
  12. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    EDIT: Thanks for the nice update; seems 4.5.5 just came out. :)
     
    Last edited: Oct 13, 2014
    David-Berger likes this.
  13. A_never_kill

    A_never_kill

    Joined:
    Jan 7, 2014
    Posts:
    81
    thanks !!..