Class XRCommonHandGestures.GraspFirmStateUpdatedEventArgs
Event-args type for when the firm grasp state updates.
Inherited Members
Namespace: UnityEngine.XR.Hands
Assembly: Unity.XR.Hands.dll
Syntax
public class XRCommonHandGestures.GraspFirmStateUpdatedEventArgs
Properties
handedness
Which hand is being updated.
Declaration
public Handedness handedness { get; }
Property Value
| Type | Description |
|---|---|
| Handedness |
Methods
TryGetGraspFirmState(out bool)
Attempts to get whether the user is making a fist.
Declaration
public bool TryGetGraspFirmState(out bool isGraspFirm)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isGraspFirm | Will be set to |
Returns
| Type | Description |
|---|---|
| bool | Returns |
Remarks
Data to evaluate the gesture might not be available when this event is dispatched. When data is available,
the function returns true and sets isGraspFirm to indicate
whether the user is making a fist (firm grasp). If this function returns false,
isGraspFirm will also be false (whether or not the user is making a fist).