About XR Behaviors

When you create XR actors, you also create XR scripts.

By default, these scripts are ready to use. To configure a script, you can edit it in the Behavior Editor. For more information, see About the Behavior Editor.

See Also
XR Grab Properties
XR Ray Properties
Deprecated: Vive Service Script Properties
XR Teleport Properties
Deprecated: Vive Transform Script Properties
XR Headset Camera Properties
XR Controller Properties

Behavior Description
XR Transform Applies the position and orientation of the XR device to its virtual representation in the experience.
XR Ray

  • Displays the laser pointer of your controller.
  • Manages click events. If you select Enable Hovering, additional events get sent (depending on the type of the actor, 3D actor, or 3D UI actor).
  • Enables response of 3D actors when you hover over with the laser pointer of the controller. In addition to click and drag, you can detect if the ray points to a 3D actor or if the ray no longer points to it.

XR Services Improves performance in the experience:
  • Deactivates the default mouse picking mode (you no longer require mouse interaction to navigate an experience using the XR device)
  • Deactivates the rendering of the main viewer (a dedicated window already shows the left eye of the XR device stream).
XR Grab (previously XR Manipulator) Lets you manipulate 3D actors that are clickable in the experience.

Important: To ensure the correct manipulation of objects using a controller and the XR Grab behavior in 3DLive, do the following:
  • Open the Preferences, and under Settings > Apps > 3DLive, turn on the Hand Structure and Movement option.
  • Ensure that at least one of your actors has a basic behavior or attached script so that 3DLive does not fall into Discovery mode.

The XR Grab behavior supports pinch motion.

XR Teleport Teleports yourself to the surface of the clickable object pointed by the laser pointer of the controller.
Note: The behavior prevents you from teleporting yourself to surfaces tilted more than 20 deg. In such case, the ray turns red and you do not teleport.

The XR Teleport behavior supports pinch motion.

Note: The XR Manipulator Script and XR Teleport Script scripts are optional in your experience. You can remove them.