Language
Edit

HandsAggregatorSubsystem.TryGetPinchProgress Method

Definition

How pinched the specific hand is.

public bool TryGetPinchProgress(UnityEngine.XR.XRNode hand, out bool isReadyToPinch, out bool isPinching, out float pinchAmount);
abstract member TryGetPinchProgress : UnityEngine.XR.XRNode * bool * bool * single -> bool
override this.TryGetPinchProgress : UnityEngine.XR.XRNode * bool * bool * single -> bool
Public Function TryGetPinchProgress (hand As XRNode, ByRef isReadyToPinch As Boolean, ByRef isPinching As Boolean, ByRef pinchAmount As Single) As Boolean

Parameters

hand
UnityEngine.XR.XRNode

The hand node being queried.

isReadyToPinch
Boolean

Represents whether the hand is in a pinch ready pose or not, within the camera's FOV and palm facing away from the user.

isPinching
Boolean

If hand is not pinching at all, this will be false.

pinchAmount
Single

This value will be 0 for no pinch, 1 for fully pinched, or any floating point value if in between.

Returns

Implements

Applies to