UxrGrabManager.GetClosestGrabbableObject Method (UxrGrabber, UxrGrabbableObject, Int32, IEnumerable(UxrGrabbableObject))
Gets the closest grabbable object that can be grabbed by a UxrGrabber.
Namespace: UltimateXR.Manipulation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public bool GetClosestGrabbableObject(
UxrGrabber grabber,
out UxrGrabbableObject grabbableObject,
out int grabPoint,
IEnumerable<UxrGrabbableObject> candidates = null
)
Parameters
- grabber
- Type: UltimateXR.Manipulation.UxrGrabber
Grabber to check - grabbableObject
- Type: UltimateXR.Manipulation.UxrGrabbableObject
Returns the closest grabbable object or null if none was found - grabPoint
- Type: System.Int32
Returns the grab point that can be grabbed - candidates (Optional)
- Type: System.Collections.Generic.IEnumerable(UxrGrabbableObject)
List of grabbable objects to process or null to process all current enabled grabbable objects
Return Value
Type: Boolean
Whether a grabbable object was found
See Also
Reference
UxrGrabManager Class
GetClosestGrabbableObject Overload
UltimateXR.Manipulation Namespace