To work with the Mozilla demo WebXR project, follow these steps:
- Start a new 3D project and ensure you are logged into your Unity account in the Unity Editor.
- Open the Build Settings dialog window and switch Build Target to WebGL.
- Open the Unity Asset Store in a web browser and log into your Unity account via Asset Store.
- Search for and select the free WebXR Exporter via Asset Store.
- Click Add to My Assets. Then, after the button changes, click Open in Unity:
Figure 15.38 – The WebXR Exporter on the Asset Store
- In your Unity Editor, the Package Manager window should open, and the WebXR assets should be selected in the list of My Assets. Click Download; then, when downloaded, click Import.
- In the Project window, you should now see two new folders named WebGL Templates and WebXR.
- Open the scene file named WebXR in the Project window (folder: WebXR |...