Method OnDrop
OnDrop(XRGrabInteractable, DropEventArgs)
Called by Unity when the given Interactable is dropped (in other words, when exiting the Select state). This method won't be called until the Interactable is released by every Interactor. Use this to do any code deinitialization based on the interactable being dropped.
Declaration
void OnDrop(XRGrabInteractable grabInteractable, DropEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| XRGrabInteractable | grabInteractable | The XR Grab Interactable being dropped. |
| DropEventArgs | args | The event args associated with the select exit event. |
Remarks
In other words, this will be called when the selection count changes from 1 to 0.
args is only valid during this method call, do not hold a reference to it.