Creating a simple WebXR scene from scratch
Rather than just exploring the Desert scene from De-Panther’s WebXR project, let’s create and publish a new scene from scratch, making use of the WebXR plugins already added as part of that project.
In this recipe we’ll create a new scene containing a Cube, acting as a table, and two orange Spheres that can be picked up and interacted with.
Getting ready
This recipe builds on the Exploring and building the Desert WebXR demo project recipe. So, make a copy of that project and work on the copy.
How to do it...
To create a simple WebXR scene from scratch, perform the following steps:
- In Unity create a new
Basic (Built-in)
scene – this should contain a Main Camera and Directional Light. - Delete the Main Camera GameObject from the scene (since we’ll be adding a WebXR camera set next).
- From the Project panel, drag the WebXRCameraSet asset file into the scene from the folder...