Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 2.43 KB

ar-rotation-interactable.md

File metadata and controls

27 lines (23 loc) · 2.43 KB
uid
xri-ar-rotation-interactable

Note

The following class has been deprecated in favor of newer cross-platform AR architecture that is compatible with Mixed Reality devices. See the AR interaction documentation for more information.

AR Rotation Interactable

Manipulates the rotation of an object via a drag or a twist gesture. If an object is selected, then dragging along the horizontal axis or performing a twist gesture will rotate along the y-axis of the item.

ARRotationInteractable component

Property Description
Interaction Manager The XRInteractionManager that this Interactable will communicate with (will find one if None).
Interaction Layer Mask Allows interaction with Interactors whose Interaction Layer Mask overlaps with any Layer in this Interaction Layer Mask.
Colliders Colliders to use for interaction with this Interactable (if empty, will use any child Colliders).
Custom Reticle The reticle that appears at the end of the line when valid.
Select Mode Indicates the selection policy of an Interactable. This controls how many Interactors can select this Interactable.
The value is only read by the Interaction Manager when a selection attempt is made, so changing this value from Multiple to Single will not cause selections to be exited.
 Single Set Select Mode to Single to prevent additional simultaneous selections from more than one Interactor at a time.
 Multiple Set Select Mode to Multiple to allow simultaneous selections on the Interactable from multiple Interactors.
XR Origin The XROrigin that this Interactable will use (such as to get the Camera or to transform from Session space). Will find one if None.
AR Session Origin This is deprecated. Use the above XR Origin instead.
Exclude UI Touches Enable to exclude touches that are over UI. Used to make screen space canvas elements block touches from hitting planes behind it.
Rotation Rate Degrees Drag The rate at which Unity rotates the attached object with a drag gesture.
Rotation Rate Degrees Twist The rate at which Unity rotates the attached object with a twist gesture.
Interactable Events See the Interactable Events page.