docs.unity3d.com
    Show / Hide Table of Contents

    Class DragGestureRecognizer

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

    Inheritance
    Object
    GestureRecognizer<DragGesture>
    DragGestureRecognizer
    Inherited Members
    GestureRecognizer<DragGesture>.onGestureStarted
    GestureRecognizer<DragGesture>.xrOrigin
    GestureRecognizer<DragGesture>.gestures
    GestureRecognizer<DragGesture>.Update()
    GestureRecognizer<DragGesture>.AddGesture(DragGesture)
    GestureRecognizer<DragGesture>.RemoveGesture(DragGesture)
    GestureRecognizer<DragGesture>.TryCreateOneFingerGestureOnTouchBegan(Func<Touch, DragGesture>, Action<DragGesture, Touch>)
    GestureRecognizer<DragGesture>.TryCreateOneFingerGestureOnTouchBegan(Func<Touch, DragGesture>, Action<DragGesture, Touch>)
    GestureRecognizer<DragGesture>.TryCreateTwoFingerGestureOnTouchBegan(Func<Touch, Touch, DragGesture>, Action<DragGesture, Touch, Touch>)
    GestureRecognizer<DragGesture>.TryCreateTwoFingerGestureOnTouchBegan(Func<Touch, Touch, DragGesture>, Action<DragGesture, Touch, Touch>)
    GestureRecognizer<DragGesture>.arSessionOrigin
    GestureRecognizer<DragGesture>.m_Gestures
    GestureRecognizer<DragGesture>.TryCreateOneFingerGestureOnTouchBegan(Func<Touch, DragGesture>)
    GestureRecognizer<DragGesture>.TryCreateOneFingerGestureOnTouchBegan(Func<Touch, DragGesture>)
    GestureRecognizer<DragGesture>.TryCreateTwoFingerGestureOnTouchBegan(Func<Touch, Touch, DragGesture>)
    GestureRecognizer<DragGesture>.TryCreateTwoFingerGestureOnTouchBegan(Func<Touch, Touch, DragGesture>)
    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 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
    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.DragGesture>.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