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?
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.
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.
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
I love you, man. 98% of answers found on this forum that helped me are yours.
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
Okay, thanks for that;)
P.S. My project seems to run well on both iPhone 6 simulators.
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.
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.
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.?
@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
EDIT: Thanks for the nice update; seems 4.5.5 just came out.
thanks !!..