The Gesture Detector is an extension to the TouchManager. The TouchManager is the one that detects the touches (the gestures), but the Gesture Detector is the one that reacts to them, depending on its settings.
To be clear, the TouchManager detects a gesture and the GestureDetector reacts to it. Because the listening for gestures needs to happen in the Update() method, by having only the TouchManager as the only listener and all the Gesture Detectors getting fired by the TouchManager, we have an efficient setup.
debug: prints debug messages related to detected gestures at runtime
is Global Gesture Detector: if true, it will trigger this Gesture Detector regardless of the targetGameObject
Target GameObject: only gestures performed on the target game object will trigger this Gesture Detector
override target: allows you to set another targetGameObject reference (in the Inspector); other than the gameObject this component is attached to
Gesture Type: the gesture type this Gesture Detector will react to
Swipe Direction: the swipe direction this Gesture Detector will react to; this works only if the gestureType is set to GestureType.Swipe
Only the ‘active’ UnityEvent is visible in the Inspector (in order to reduce clutter)
OnTap: UnityEvent invoked on tap
OnLongTap: UnityEvent invoked on long tap
OnSwipe: UnityEvent invoked on swipe (it has to be the proper swipe direction)
onTapAction: action invoked on tap
onLongTapAction: action invoked on long tap
onSwipeAction: action invoked on swipe (it has to be the proper swipe direction)
Only if the UINavigation is enabled, the Navigation options will be available.
Add to Navigation History: if there are any UIElements set to be shown or hidden, the action will be added to the Navigation History
SHOW: a list of pairs of element category and element name that will get shown when this Gesture Detector gets triggered
HIDE: a list of pairs of element category and element name that will get hidden when this Gesture Detector gets triggered