Click or drag to resize

SwipeGestureRecognizerComponentScript Fields

The SwipeGestureRecognizerComponentScript type exposes the following members.

Fields
  NameDescription
Public fieldAllowSimultaneousExecutionWith
Gesture components to allow simultaneous execution with. By default, gestures cannot execute together.
(Inherited from GestureRecognizerComponentScriptT.)
Public fieldAllowSimultaneousExecutionWithAllGestures
Whether to allow the gesture to execute simultaneously with all other gestures.
(Inherited from GestureRecognizerComponentScriptT.)
Public fieldClearTrackedTouchesOnEndOrFail
Whether tracked touches are cleared when the gesture ends or fails, default is false. By setting to true, you allow the gesture to possibly execute again with a different touch even if the original touch it failed on is still on-going. This is a special case, so be sure to watch for problems if you set this to true, as leaving it false ensures the most correct behavior, especially with lots of gestures at once.
(Inherited from GestureRecognizerComponentScriptT.)
Public fieldDirection
The swipe direction required to recognize the gesture (default is any)
Public fieldDirectionThreshold
For set directions, this is the amount that the swipe must be proportionally in that direction vs the other direction. For example, a swipe down gesture will need to move in the y axis by this multiplier more versus moving along the x axis.
Public fieldEndMode
Controls how the swipe gesture ends. See SwipeGestureRecognizerSwipeMode enum for more details.
Public fieldFailOnDirectionChange
Whether to fail if the gesture changes direction mid swipe
Public fieldGestureStateUpdated
Gesture state updated callback
(Inherited from GestureRecognizerComponentScriptT.)
Public fieldGestureView
The game object the gesture must execute over, null to allow the gesture to execute anywhere.
(Inherited from GestureRecognizerComponentScriptT.)
Public fieldMaximumNumberOfTouchesToTrack
The maximum number of touches to track. This gesture will never track more touches than this. Default is usually 1 or 2. Not all gestures will honor values higher than 1.
(Inherited from GestureRecognizerComponentScriptT.)
Public fieldMinimumDistanceUnits
The minimum distance the swipe must travel to be recognized.
Public fieldMinimumNumberOfTouchesToTrack
The minimum number of touches to track. This gesture will not start unless this many touches are tracked. Default is usually 1 or 2. Not all gestures will honor values higher than 1.
(Inherited from GestureRecognizerComponentScriptT.)
Public fieldMinimumSpeedUnits
The minimum units per second the swipe must travel to be recognized.
Public fieldRequireGestureRecognizersToFail
The gesture recognizers that should be required to fail
(Inherited from GestureRecognizerComponentScriptT.)
Public fieldSendBeginExecutingStates
Whether to send begin and executing states. Default is true. If false, only possible, ended or failed state is sent.
Top
See Also