docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRCommonHandGestures.GraspValueUpdatedEventArgs

    Event-args type for when the grasp value updates.

    Inheritance
    object
    XRCommonHandGestures.GraspValueUpdatedEventArgs
    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.GraspValueUpdatedEventArgs

    Properties

    handedness

    Which hand is being updated.

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

    Methods

    TryGetGraspValue(out float)

    Attempts to get the grasp value.

    Declaration
    public bool TryGetGraspValue(out float graspValue)
    Parameters
    Type Name Description
    float graspValue

    Will be filled out with the grasp value, if successful.

    Returns
    Type Description
    bool

    Returns true and a valid value is filled out. Returns false otherwise.

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