docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TwoFingerDragGestureRecognizer

    Gesture Recognizer for when the user performs a two finger drag motion on the touch screen.

    Inheritance
    object
    GestureRecognizer<TwoFingerDragGesture>
    TwoFingerDragGestureRecognizer
    Inherited Members
    GestureRecognizer<TwoFingerDragGesture>.onGestureStarted
    GestureRecognizer<TwoFingerDragGesture>.xrOrigin
    GestureRecognizer<TwoFingerDragGesture>.raycastMask
    GestureRecognizer<TwoFingerDragGesture>.raycastTriggerInteraction
    GestureRecognizer<TwoFingerDragGesture>.gestures
    GestureRecognizer<TwoFingerDragGesture>.Update()
    GestureRecognizer<TwoFingerDragGesture>.AddGesture(TwoFingerDragGesture)
    GestureRecognizer<TwoFingerDragGesture>.RemoveGesture(TwoFingerDragGesture)
    GestureRecognizer<TwoFingerDragGesture>.TryCreateOneFingerGestureOnTouchBegan(Func<Touch, TwoFingerDragGesture>, Action<TwoFingerDragGesture, Touch>)
    GestureRecognizer<TwoFingerDragGesture>.TryCreateOneFingerGestureOnTouchBegan(Func<Touch, TwoFingerDragGesture>, Action<TwoFingerDragGesture, Touch>)
    GestureRecognizer<TwoFingerDragGesture>.TryCreateTwoFingerGestureOnTouchBegan(Func<Touch, Touch, TwoFingerDragGesture>, Action<TwoFingerDragGesture, Touch, Touch>)
    GestureRecognizer<TwoFingerDragGesture>.TryCreateTwoFingerGestureOnTouchBegan(Func<Touch, Touch, TwoFingerDragGesture>, Action<TwoFingerDragGesture, Touch, Touch>)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Interaction.Toolkit.AR
    Assembly: Unity.XR.Interaction.Toolkit.dll
    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
    float

    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
    float

    Methods

    TryCreateGestures()

    Try to recognize and create gestures.

    Declaration
    protected override void TryCreateGestures()
    Overrides
    GestureRecognizer<TwoFingerDragGesture>.TryCreateGestures()
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)