docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TapGestureRecognizer

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

    Inheritance
    object
    GestureRecognizer<TapGesture>
    TapGestureRecognizer
    Inherited Members
    GestureRecognizer<TapGesture>.onGestureStarted
    GestureRecognizer<TapGesture>.xrOrigin
    GestureRecognizer<TapGesture>.raycastMask
    GestureRecognizer<TapGesture>.raycastTriggerInteraction
    GestureRecognizer<TapGesture>.gestures
    GestureRecognizer<TapGesture>.Update()
    GestureRecognizer<TapGesture>.AddGesture(TapGesture)
    GestureRecognizer<TapGesture>.RemoveGesture(TapGesture)
    GestureRecognizer<TapGesture>.TryCreateOneFingerGestureOnTouchBegan(Func<Touch, TapGesture>, Action<TapGesture, Touch>)
    GestureRecognizer<TapGesture>.TryCreateOneFingerGestureOnTouchBegan(Func<Touch, TapGesture>, Action<TapGesture, Touch>)
    GestureRecognizer<TapGesture>.TryCreateTwoFingerGestureOnTouchBegan(Func<Touch, Touch, TapGesture>, Action<TapGesture, Touch, Touch>)
    GestureRecognizer<TapGesture>.TryCreateTwoFingerGestureOnTouchBegan(Func<Touch, Touch, TapGesture>, Action<TapGesture, 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 TapGestureRecognizer : GestureRecognizer<TapGesture>
    Remarks

    To determine when a gesture is finished/updated, listen to events on the Gesture<T> object.

    Constructors

    TapGestureRecognizer()

    Initializes and returns an instance of TapGestureRecognizer.

    Declaration
    public TapGestureRecognizer()

    Properties

    durationSeconds

    Time (in seconds) within which a touch and release has to occur for it to be registered as a tap.

    Declaration
    public float durationSeconds { get; set; }
    Property Value
    Type Description
    float

    slopInches

    Distance in inches a user's touch can drift from the start position before the tap gesture is canceled.

    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<TapGesture>.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)