Click or drag to resize

LongPressGesture Fields

The LongPressGesture type exposes the following members.

Fields
  NameDescription
Protected fieldactivePointers
Pointers the gesture currently owns and works with.
(Inherited from Gesture.)
Protected fieldbasicEditor (Inherited from Gesture.)
Protected fieldcachedPreviousScreenPosition
Cached previous screen position. Used to keep tap's position which can't be calculated from pointers when the gesture is recognized since all pointers are gone.
(Inherited from Gesture.)
Protected fieldcachedScreenPosition
Cached screen position. Used to keep tap's position which can't be calculated from pointers when the gesture is recognized since all pointers are gone.
(Inherited from Gesture.)
Protected fieldcachedTransform
Cached transform of the parent object.
(Inherited from Gesture.)
Public fieldStatic memberLONG_PRESS_MESSAGE
Message name when gesture is recognized
Public fieldOnLongPress
Unity event, occurs when gesture is recognized.
Public fieldOnStateChange
Occurs when gesture changes state.
(Inherited from Gesture.)
Top
See Also