Creating and running a Unity project on a VR headset
VR devices are mobile devices, so if you’ve created some mobile apps and loaded them onto a cell phone you’ll be familiar with the procedure for working with VR headsets. Most VR devices run using the Android mobile operating system (including the Oculus Quest/2/3 and Pico VR headsets). This recipe is based on working with a Quest 2 headset, but the steps are similar for other headsets.
In this recipe, you’ll learn how to create a project containing an empty, all-green scene, and build and run this project on a Quest 2 headset.
This recipe will be the foundation for the other recipes in this chapter.
Getting ready
Before beginning the recipes in this chapter, you should have explored the Android recipes in Chapter 15, Mobile Games and Applications, to be familiar with the procedure for switching build targets to mobile devices and running games on USB-connected devices. Also, since you’...