User Manual


VR View

PlayCanvas lets you create Virtual Reality (VR) and Augmented Reality (AR) applications for a variety of devices based on the new WebXR API. WebXR is an evolution of the WebVR API and is being added to modern browsers, providing access to virtual reality headsets, controllers and AR features.


WebXR is a new API and it is being rolled out gradually to all major platforms. Up to date support can be checked on

Additionally, support can be achieved with the WebXR Polyfill.

On mobile, PlayCanvas XR currently works on Android and iOS devices using Cardboard-style VR headsets and it is supported on the Samsung Gear VR. Some level of AR is also available. It also works on stand-alone Android based VR devices, such as the Oculus Quest™.

On desktop, PlayCanvas XR currently works in Chrome and Edge, and devices are linked through various native APIs, such as Windows Mixed Reality, OpenXR and others. This covers the majority of desktop-based VR devices.

Testing WebXR without XR device

To start developing with WebXR today, a browser extension can be used in Chrome or Firefox which emulates the WebXR API. This allows developers to interact with various head-mounted displays and controllers.

Getting started with WebXR

To start an XR session, support and availability should be checked first. Then, on user interaction XR, a session can be started:

button.element.on('click', function () {
    // check if XR is supported and VR is available
    if (app.xr.supported && app.xr.isAvailable(pc.XRTYPE_VR)) {
        // start VR using a camera component, pc.XRSPACE_LOCALFLOOR);
This site is translated by the community. If you want to get involved visit this page