文档

Unity Engine

Unity Engine

AndroidInput

Provides support for off-screen touch input, such as a touchpad.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.InputLegacyModule
public class AndroidInput

Static Properties

Property

Description

secondaryTouchEnabledIndicates whether the system provides secondary touch input.
secondaryTouchHeightIndicates the height of the secondary touchpad.
secondaryTouchWidthIndicates the width of the secondary touchpad.
touchCountSecondaryNumber of secondary touches. Guaranteed not to change throughout the frame (Read Only).

Static Methods

Method

Description

GetSecondaryTouchReturns an object representing the status of a specific touch on a secondary touchpad (doesn't allocate temporary variables).