UxrGrabManager.GetHandsGrabbingCount Method

Gets the number of hands currently grabbing an object.

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

Syntax

C#

public int GetHandsGrabbingCount(
	UxrGrabbableObject grabbableObject,
	bool alsoCheckDependentGrabs = true
)

Parameters

 

grabbableObject
Type: UltimateXR.Manipulation.UxrGrabbableObject
The grabbable object
alsoCheckDependentGrabs (Optional)
Type: System.Boolean
Also checks for hands that are grabbing other child objects that also control the direction of the given parent object.

Return Value

Type: Int32
Number of hands grabbing the object

See Also

Reference

UxrGrabManager Class
UltimateXR.Manipulation Namespace