Loading the OVRP

The Oculus Integration package contains the tools, prefabs, samples, and scripts needed to develop VR applications. The package also includes the latest version of the OVRPlugin. This plugin is already part of the Unity editor, but upgrading to the latest version assures that we have access to the must current revisions, scripts, and assets. In the next step, we will import the OVRPlugin package:

  1. Open the Asset Store (Ctrl + 9 on Windows or Cmd + 9 on Mac) and search for Oculus Integration. It will be the first search result.
  2. Click the package link and choose Import.

The Import dialog will display the package's components. This is everything we need to build our VR experience. Confirm that everything is selected before proceeding.

  1. With everything selected, click the Import button in the lower right-hand corner. Depending on your platform, version, and past VR projects, you might see two or three dialog boxes regarding out-of-date scripts or plugins. Click the affirmative Yes or Okay to continue, and choose Restart if asked.
  2. Go make a sandwich or do something fun. The process of importing involves compiling shaders for your graphics card. The actual time varies depending on the operation system and video card. But times from 5 - 25 minutes have been reported.

When completed, the Asset directory will look like the following image. These added directories contain scripts for VR camera behavior, prefabs, input API for controllers, advanced rendering features, object-grabbing, and haptics scripts for Touch, as well as debugging tools. Most of these things work in the background, but we will be using the prefabs to build our scene:

Figure 7.4: Asset folder after importing the Oculus Integration package