Configuring the Unity Project
Explore how to configure your Unity project to develop VR applications using the XR Interaction Toolkit and Oculus devices. Learn to install required plugins, set Android build settings, add interactive VR elements, and build your first VR scene ready for Meta Quest devices.
We’ve familiarized ourselves with the basic concepts and configurations essential to begin our Unity development journey. This chapter will further our proficiency with VR development by giving us a run-through of features integral to most VR experiences. We’ll learn to create a room, furnish it with some assets, and add lighting to it. Then, we’ll cover some basic locomotion techniques to be able to move to different locations within the room. Finally, we’ll learn to implement interactions, like grabbing, within our scene.
The following are some essential configurational changes needed to create a virtual reality project in Unity. We’ll go through these configurations step by step.
Unity VR settings
Assuming you’ve already downloaded and installed the Unity Hub 2021.3.6f1 Editor, let’s create our first VR app in Unity.
In Unity Hub, go to the “Projects” section and click the “New project” button.
Select “3D Core” with the Unity built-in renderer as the template for your project.
Type in a name for your project and choose a location for it. Then, click the “Create project” button.
The Unity Editor will open with a default scene that includes a camera and directional light.
To enable VR development, we need to configure the settings in the Unity Editor. Follow these steps to set up the Unity Editor for VR:
Step 1: Install the XR Plug-in Management package
XR stands for extended reality, which includes virtual reality (VR), augmented reality (AR), and mixed reality (MR). In Unity, the XR Interaction (XRI) Toolkit is a system ...