UxrGrabManager.IsHandGrabbing Method (UxrAvatar, UxrGrabbableObject, UxrHandSide, Boolean)

Checks if an avatar’s hand is grabbing a grabbable object.

Namespace: UltimateXR.Manipulation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public bool IsHandGrabbing(
	UxrAvatar avatar,
	UxrGrabbableObject grabbableObject,
	UxrHandSide handSide,
	bool alsoCheckDependentGrab = true
)

Parameters

 

avatar
Type: UltimateXR.Avatar.UxrAvatar
Avatar to check
grabbableObject
Type: UltimateXR.Manipulation.UxrGrabbableObject
Object to check if it is being grabbed
handSide
Type: UltimateXR.Core.UxrHandSide
Whether to check the left hand or right hand
alsoCheckDependentGrab (Optional)
Type: System.Boolean
Whether to also check for any parent UxrGrabbableObject that controls its direction and is physically connected.

Return Value

Type: Boolean
Whether the object is being grabbed by the avatar using the given hand

See Also

Reference

UxrGrabManager Class
IsHandGrabbing Overload
UltimateXR.Manipulation Namespace