TouchSwipe

Constructor:

TouchSwipe(touchMoveDir, touchCount)

Description

This event is triggered when the user swipes on the touch device. Unlike TouchMove, TouchSwipe will pass in the moving direction.

Parameters

Variable name Type Default Description
touchMoveDir Swipe direction
Input.touchCount The number of touch points

Examples

When the user swipes on the touch device, observe whether the event is printed or not

UserInputService.TouchSwipe:Connect(function() 
    print("The event that the user starts to swipe is triggered")
end)