docs.unity3d.com
Search Results for

    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>.raycastMask
    GestureRecognizer<DragGesture>.raycastTriggerInteraction
    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>)
    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 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()
    Overrides
    GestureRecognizer<DragGesture>.TryCreateGestures()
    In This Article
    Back to top
    Copyright © 2024 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)