docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TwistGestureRecognizer

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

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

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

    Constructors

    TwistGestureRecognizer()

    Initializes and returns an instance of TwistGestureRecognizer.

    Declaration
    public TwistGestureRecognizer()

    Properties

    slopRotation

    Rotation in degrees a user's touches must twist from the start positions before the twist gesture is interpreted as started.

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

    Methods

    TryCreateGestures()

    Try to recognize and create gestures.

    Declaration
    protected override void TryCreateGestures()
    Overrides
    GestureRecognizer<TwistGesture>.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)