Interface IXRDropTransformer
An interface that allows the target position, rotation, and scale of an XRGrabInteractable to be calculated. This interface adds the ability for the grab transformer to be notified when the interactable is dropped and to process once more.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Transformers
Assembly: solution.dll
Syntax
public interface IXRDropTransformer : IXRGrabTransformer
Properties
| Name | Description |
|---|---|
| canProcessOnDrop | Whether this grab transformer opts-in to allowing Process(XRGrabInteractable, UpdatePhase, ref Pose, ref Vector3) to be called by Unity once more after the interactable is deselected by all interactors. |
Methods
| Name | Description |
|---|---|
| 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. |