IUxrGrabbable.Releasing Event

Event called when the object is about to be released. An object is released when the last grip is released and there is no compatible UxrGrabbableObjectAnchor near enough to place it on. The following properties from UxrManipulationEventArgs will contain meaningful data:  

  • GrabbableObject: Object that is about to be released.
  • GrabbableAnchor: Anchor where the object was originally grabbed from. Null if it wasn’t on a target.
  • Grabber: Grabber that is about to release the object.
  • GrabPointIndex: Grab point index of the object that is being grabbed by the UxrGrabber.
  • IsMultiHands: true if it is already being grabbed with another hand that will keep it holding. False if no other hand is currently grabbing it.
  • IsSwitchHands: True if it was released because another UxrGrabber grabbed it, false otherwise. if IsMultiHands is true then IsSwitchHands will tell if it was released by both hands (false) or if it was just released by one hand and the other one still keeps it grabbed (true).
  • ReleaseVelocity: Velocity the object is being released with.
  • ReleaseAngularVelocity: Angular velocity the object is being released with.
  Namespace: UltimateXR.Manipulation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

event EventHandler<UxrManipulationEventArgs> Releasing


Value

Type: System.EventHandler(UxrManipulationEventArgs)

See Also

Reference

IUxrGrabbable Interface
UltimateXR.Manipulation Namespace