Hello everyone.
I would just like to know if there are any major or small diffrences coding/scripting for the IPhone or Android?
Thank you.
Hello everyone.
I would just like to know if there are any major or small diffrences coding/scripting for the IPhone or Android?
Thank you.
It's a good question... As of Unity 3.0 the Android and iPhone scripting was for the most part combined to make it less specific.
For example, the old Screen Orientation value used to be:
iPhoneSettings.screenOrientation
Now it's:
Screen.orientation
This means you can use the same value for both Android and iPhone, which makes it so you only have to do one script.
There will be things you have to do in your program differently on iPhone and Android, and these will have to be programmed individually and removed at compile-time using this method: http://answers.unity3d.com/questions/25878/how-to-test-if-game-is-currently-deployed-on-ios
One specific thing that comes to mind is testing for the generation of phone you are currently deployed on, that would have to be specifically programmed for Android and iOS. (Lowering graphic settings if you are on an older phone for instance)