Unity forge
Android Scripting
Manual     Reference     Scripting   
Unity Manual > Getting Started with Android Development > Android Scripting

Android Scripting

Unity Android provides a number of scripting APIs unified with iOS APIs to access handheld device functionality. For cross-platform projects, UNITY_ANDROID is defined for conditionally compiling Android-specific C# code. The following scripting classes contain Android-related changes (some of the API is shared between Android and iOS):

Input Access to multi-touch screen, accelerometer and device orientation.
iPhoneSettings Some of the Android 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.

Further Reading

Page last updated: 2010-09-08


Unity3dРекламный блок Unity3d



Установить Adobe Flash плеер
Ruslan Slobodianiuk © unity3dforge.com все права защищены