API reference
API reference
Select your platform
No SDKs available
No versions available

SwipeGesture Class

Extends UIBehaviour, IBeginDragHandler, IEndDragHandler
The SwipeGesture component listens to the drag events to detect if a gesture happened on a particular element in the local X or Y axis.

Member Enumerations

Enumeration Axis

Horizontal
= 0
Vertical
= 1

Fields

float gestureMaxDuration[Get]
float gestureMinDistanceNormalized[Get]
bool invertScroll[Get]
Axis swipeAxis[Get]

Member Functions

void OnBeginDrag
( PointerEventData eventData )
void OnEndDrag
( PointerEventData eventData )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon