Enabling VR

Tutorial

·

Beginner

·

+10XP

·

5 mins

·

(366)

Unity Technologies

Enabling VR

Enabling VR development in Unity takes just a few steps. In this workflow, we’ll configure a standalone project for VR using the OpenVR platform.

Languages available:

1. Enabling VR

Verified: 2019.4LTS


Enabling VR development in Unity takes just a few steps. In this tutorial, we’ll configure a standalone project for VR using the OpenVR platform.


2. Launching the Package Manager Window

To develop VR experiences, you’ll need to install the VR SDK for your target OS and VR platform. The VR SDKs are installed via the Package Manager.


1. Select Package Manager from the Window drop-down (Figure 01).


Figure 01: Accessing the Package Manager

Figure 01: Accessing the Package Manager


2. In the left column, click OpenVR (Desktop). Click Install (Figure 02).


Figure 02: Installing the OpenVR SDK

Figure 02: Installing the OpenVR SDK



Other supported platforms include:


Android


  • Google VR Android

  • Oculus Android

Desktop


  • Oculus Desktop

  • OpenVR (Desktop)

iOS


  • Google VR iOS

3. Enabling VR support in project settings

With the VR SDK installed, we’re ready to enable VR.


1. Select Project Settings from the Edit drop-down (Figure 03).


Figure 03: Project Settings menu entry.

Figure 03: Project Settings menu entry.


2. Click Player (Figure 04).


Figure 04: Player Settings is also accessible through the Build Settings window.

Figure 04: Player Settings is also accessible through the Build Settings window.


3. At the bottom of the Project Settings window, click XR Settings to expand that section. Check the box marked Virtual Reality Supported (Figure 05) under the Deprecated Settings section. Note that the Built-in XR is deprecated and will be retired in a future version of Unity. You can continue to use the Built-in XR in Unity 2019.4LTS.


Figure 05: Enabling Virtual Reality support is the same across all currently supported platforms.

Figure 05: Enabling Virtual Reality support is the same across all currently supported platforms.


4. Once VR is enabled, you’ll need to add at least one VR SDK. Click the + sign and select OpenVR if it is not already added. (Figure 06).


Figure 06: Selecting a VR SDK

Figure 06: Selecting a VR SDK


5. Close the Player Settings window.


4. Conclusion

Your Unity project is now configured for VR development.


Complete this tutorial