iOS Scripting
Unity iOS provides a number of new scripting APIs to access unique device functionality. For cross-platform projects, UNITY_IPHONE is defined for conditionally compiling iOS-specific C# code. The following new scripting classes were introduced:
iPhoneInput | Access to multi-touch screen, accelerometer, device orientation and geographical location. |
iPhoneSettings | iOS specific settings, such as screen orientation, dimming and information about device hardware. |
iPhoneKeyboard | Support for native on-screen keyboard. |
iPhoneUtils | Useful functions for movie playback, anti-piracy protection and vibration. |