UxrGrabManager.GetObjectBeingGrabbed Method
Gets the object being grabbed by an avatar.
Namespace: UltimateXR.Manipulation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public bool GetObjectBeingGrabbed(
UxrAvatar avatar,
UxrHandSide handSide,
out UxrGrabbableObject grabbableObject
)
Parameters
- avatar
- Type: UltimateXR.Avatar.UxrAvatar
Avatar to get the grabbed object of - handSide
- Type: UltimateXR.Core.UxrHandSide
Whether to check the left hand or right hand - grabbableObject
- Type: UltimateXR.Manipulation.UxrGrabbableObject
Returns the object being grabbed, or null if not found
Return Value
Type: Boolean
Whether there is an object being grabbed by the avatar using the given hand