docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRCommonHandGestures.PinchTouchedStateUpdatedEventArgs

    Event-args type for when the pinch touched state updates.

    Inheritance
    object
    XRCommonHandGestures.PinchTouchedStateUpdatedEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Hands
    Assembly: Unity.XR.Hands.dll
    Syntax
    public class XRCommonHandGestures.PinchTouchedStateUpdatedEventArgs

    Properties

    handedness

    Which hand is being updated.

    Declaration
    public Handedness handedness { get; }
    Property Value
    Type Description
    Handedness

    Methods

    TryGetPinchTouchedState(out bool)

    Attempts to get whether the hand is performing a pinch gesture.

    Declaration
    public bool TryGetPinchTouchedState(out bool isPinched)
    Parameters
    Type Name Description
    bool isPinched

    Will be set to true if the hand is pinching, otherwise false.

    Returns
    Type Description
    bool

    Returns true if a valid evaluation of the gesture is available. Returns false otherwise.

    Remarks

    Data to evaluate the gesture might not be available when you call this function. When data is available, the function returns true and sets isPinched to indicate whether the hand is currently pinching. If this function returns false, isPinched will be false whether or not the hand is pinching.

    In This Article
    Back to top
    Copyright © 2026 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)