- Home /
Game for iPhone
How do I know my game is the right size for the iPhone?
Answer by AlucardJay · Sep 06, 2012 at 11:51 PM
http://ideatree.posterous.com/ios-screen-resolutions
http://en.wikipedia.org/wiki/List_of_iOS_devices
In Unity, navigate to Edit > Project Settings > Player
Select the correct option (tab) under Per-Platform Settings, then click on the 'Resolution and Presentation' tab , but most importantly, check the Other Settings tab.
Or : just set your game view to 3:2, or 4:3 (doesn't work for certain GUI application methods/plugins)
I'm on the free version of Unity. Would it still work?
Do you have everything else set up, like your iOS-Unity add-on and a iOS Developer Program? You'll need that to build to your device.
Basically what you want to do is find out the aspect ratio of your device, then find out the resolution. Setting the aspect ratio of your game view in Unity to the same will ensure anything you build and see with a perspective camera (I have not worked with orthogonal) will be where you expect it on the stage. What this means is things won't disappear out of view where you don't expect or want them to. That's in the 3D world space.
Your resolution is a consideration when dealing with textures (and models to some degree), but you can check again by setting your game view to the same resolution as your device. if your screen is small (or your device is iPad new), play the scene in 'maximize on play' view.
GUI is different and there are many solutions out there. I have my own 3D gui I wrote and use. I suggest you check out the products like http://www.starscenesoftware.com/flyingtext3d.html or search gui on the asset store.
Is there anyway I can play my game on an IOS simulator, without having to pay any fee?
No. You need Unity iOS, and you need to be a registered Apple developer. Also you need an actual iPhone or iPod touch. Without one you don't know what performance actually is (or whether shaders and so on are working the way you expect), and can't test touch/gyro input.