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