Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AndroidInput

Namespace: UnityEngine

Description

AndroidInput provides support for off-screen touch input, such as a touchpad.

Static Variables

secondaryTouchEnabledProperty indicating whether the system provides secondary touch input.
secondaryTouchHeightProperty indicating the height of the secondary touchpad.
secondaryTouchWidthProperty indicating the width of the secondary touchpad.
touchCountSecondaryNumber of secondary touches. Guaranteed not to change throughout the frame. (Read Only).

Static Functions

GetSecondaryTouchReturns object representing status of a specific touch on a secondary touchpad (Does not allocate temporary variables).