docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PinchGestureRecognizer

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

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

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

    Constructors

    PinchGestureRecognizer()

    Initializes and returns an instance of PinchGestureRecognizer.

    Declaration
    public PinchGestureRecognizer()

    Properties

    slopInches

    Distance in inches a user's touch gap can drift from the start position before the pinch gesture is interpreted as started.

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

    slopMotionDirectionDegrees

    Threshold angle of motion of a user's touches used when determining if the pinch gesture is able to start.

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

    Methods

    TryCreateGestures()

    Try to recognize and create gestures.

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