Class TwoFingerDragGestureRecognizer
Gesture Recognizer for when the user performs a two finger drag motion on the touch screen.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AR
Syntax
public class TwoFingerDragGestureRecognizer : GestureRecognizer<TwoFingerDragGesture>
Remarks
To determine when a gesture is finished/updated, listen to events on the Gesture<T> object.
Constructors
TwoFingerDragGestureRecognizer()
Initializes and returns an instance of TwoFingerDragGestureRecognizer.
Declaration
public TwoFingerDragGestureRecognizer()
Properties
angleThresholdRadians
Maximum angle of the divergence between the paths of both fingers for a two-finger drag gesture to be interpreted as started.
Declaration
public float angleThresholdRadians { get; set; }
Property Value
Type | Description |
---|---|
Single |
slopInches
Distance in inches a user's touches can drift from the start position before the drag gesture is interpreted as started.
Declaration
public float slopInches { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
TryCreateGestures()
Try to recognize and create gestures.
Declaration
protected override void TryCreateGestures()
Overrides
UnityEngine.XR.Interaction.Toolkit.AR.GestureRecognizer<UnityEngine.XR.Interaction.Toolkit.AR.TwoFingerDragGesture>.TryCreateGestures()