Playing XR Experiences on the Web

You can play the XR experiences that you publish as web experiences in the web player using the WebXR device API.

To qualify as an XR experience, your experience requires an XR interaction area containing XR actors. From Play Optimization, you can then include the XR interaction area and XR actors as content to publish in your web experience. After the publication, you can use a WebXR-ready browser to play your experience on the web.

Note: There are some limitations regarding the use of WebXR, notably regarding the Passthrough mode. For more information, see Limitations.


Before you begin:
  1. Connect an XR device and ensure that it is compatible with WebXR.

    For more information, see About WebXR and Playing XR Experiences on the Web.

  2. Ensure that your web browser is compatible with WebXR.
  3. Optional: Create and develop a scenario for your experience.

    For more information, see Creating Scenarios.

  4. Create an XR interaction area.

    For more information, see Creating an XR Environment.

  5. Optional: For more convenience on the web, add an XR Ray behavior to your XR controller or hand actors.
    Note: The controller and hand models do not appear on the web.
  6. Publish your experience as a web experience.

    For more information, see Publishing Experiences and Publishing Web Experiences.

  7. Ensure that you select the XR interaction area and the relevant XR actors (according to your configured XR device) when determining the content to include in your published web experience.

    For more information, see Selecting Content.

See Also
About WebXR and Playing XR Experiences on the Web
About Passthrough and Augmented Reality
About XR Behaviors
About the Experience Controls for XR Controllers
Creating XR Actors
  1. From your connected XR device, open your published web experience and a supported web browser.
  2. From the web browser, start the WebXR device API.
    Your experience pauses automatically and a panel opens to let you play the web experience in XR.
  3. To start the WebXR session, click Start Immersive Session.

    Note: The Start Immersive Session command appears only if you validate all the prerequisites described in this topic.

    Your web browser requires your permission to:

    • Use your virtual device and data.
    • Track your hands.

  4. Grant your web browser the requested permissions.

    Depending on your choices, your web browser might require you to grant the permissions again in subsequent immersive sessions.

    Important: If for some reason the WebXR session cannot start, your web experience enters the XR emulation mode as a fallback. The XR emulation mode lets you simulate XR in your web experience, but without the immersive features of your XR device (headset, trackers, etc.)

    For more information, see Emulating XR Sessions.

    For example, the WebXR session does not start if:

    • You deny the permissions to the browser.
    • You no longer have any connected XR headset.

Result: You can now visualize and interact with your web experience in XR directly from the web.