docs.unity3d.com
    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>.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>)
    GestureRecognizer<TwoFingerDragGesture>.arSessionOrigin
    GestureRecognizer<TwoFingerDragGesture>.m_Gestures
    GestureRecognizer<TwoFingerDragGesture>.TryCreateOneFingerGestureOnTouchBegan(Func<Touch, TwoFingerDragGesture>)
    GestureRecognizer<TwoFingerDragGesture>.TryCreateOneFingerGestureOnTouchBegan(Func<Touch, TwoFingerDragGesture>)
    GestureRecognizer<TwoFingerDragGesture>.TryCreateTwoFingerGestureOnTouchBegan(Func<Touch, Touch, TwoFingerDragGesture>)
    GestureRecognizer<TwoFingerDragGesture>.TryCreateTwoFingerGestureOnTouchBegan(Func<Touch, Touch, TwoFingerDragGesture>)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023