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