iOS Scripting
Manual     Reference     Scripting   
Unity Manual > Getting Started with iOS Development > iOS Scripting

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:

iPhoneInputAccess to multi-touch screen, accelerometer, device orientation and geographical location.
iPhoneSettingsiOS specific settings, such as screen orientation, dimming and information about device hardware.
iPhoneKeyboardSupport for native on-screen keyboard.
iPhoneUtilsUseful functions for movie playback, anti-piracy protection and vibration.

Further Reading

Page last updated: 2010-09-08