- Home /
iphone 2D settings
Hi, Im working on a 2D game for iphone and currently i have the old iphone device with resolution of ( 480x320 ). so this is the only device i can debug with.
I would like my application to work also on the new iphone device which have a resolution of 960x640.
1.what should i be aware of? 2.is there any special settings i need to know about? 3.is there anything with orthographic camera i should know? 4.does my camera will show the same area in resolution of 960x640 like in 480x320?
Please help me so i can progress in my project.
Thanks.
Answer by Tetrad · Jul 16, 2010 at 11:20 PM
All your 3D settings will be the same regardless of what device you're on. The only thing you need to be aware of is that the ortho camera represents vertical size. So on the iPad, which has a 4:3 aspect ratio instead of a 3:2 aspect ratio of the iphones/ipods, you'll see less on the sides.
You can get your app to be iphone 4 resolution compatible (I did that here: http://answers.unity3d.com/questions/14221/is-it-possible-to-get-unity-iphone-1-7-to-work-on-the-iphone-4-at-full-resolution), but I wouldn't recommend trying it unless you know what you're doing.
So if i build my app for the old iphone which is 480x320 it will work also on the new iphone?
Even if you do nothing it'll work on the new phone. It just won't be full resolution unless you do what I did in that question. And you probably don't want to do that unless you have a device to test on to make sure your input is right.
Answer by qJake · Jul 16, 2010 at 10:42 PM
Disclaimer: I could be entirely wrong, as I'm not an iPhone developer, so this is just my guess.
I believe the new iPhone OS 4 (including the new resolution) isn't supported officially yet, but if you want to preorder Unity Pro (v3) with either iPhone or iPhone Pro, you can do so. The current version of Unity 3 is in beta, and I don't know if it supports iOS 4 or not (though I would assume it does).
https://store.unity3d.com/shop/
As it stands, however, Unity 2.6.x does not support iOS 4 or any of its features (as far as I'm aware). People have attempted to create OpenGL plugins that force the higher resolution on iOS 4, but I don't believe they work.
So basically, you're stuck until Unity 3 comes out, or you preorder Unity 3 (with an iPhone plugin).