Version: 2017.1 (switch to 2017.2b)
LanguageEnglish
  • C#
  • JS

Script language

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

GestureSettings

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

This enumeration represents the set of gestures that may be recognized by GestureRecognizer.

GestureRecognizer performs only the minimal disambiguation between the set of gestures that you request. For example, if you request just Tap, the user may hold their finger down as long as they like and a Tap will still occur when the user releases their finger.

Variables

NoneDisable support for gestures.
TapEnable support for the tap gesture.
DoubleTapEnable support for the double-tap gesture.
HoldEnable support for the hold gesture.
ManipulationTranslateEnable support for the manipulation gesture which tracks changes to the hand's position. This gesture is relative to the start position of the gesture and measures an absolute movement through the world.
NavigationXEnable support for the navigation gesture, in the horizontal axis.
NavigationYEnable support for the navigation gesture, in the vertical axis.
NavigationZEnable support for the navigation gesture, in the depth axis.
NavigationRailsXEnable support for the navigation gesture, in the horizontal axis using rails (guides).
NavigationRailsYEnable support for the navigation gesture, in the vertical axis using rails (guides).
NavigationRailsZEnable support for the navigation gesture, in the depth axis using rails (guides).