The Unity VR porting process
Porting an application or game to native Unity VR is a multi-stage process.
The stages required to port an application to Unity VR are:
- Install Unity version 5.1 or later. Unity version 5.1 and later natively support VR.
If required, obtain the signature file for your device from the appropriate website, and place it in the required folder on your device.
For the Samsung Gear VR that runs the Ice Cave demo, this is the Oculus developer website https://developer.oculus.com/osig. The signature file for a Samsung device must go in the Plugins/Android/assets folder.
In Unity, select Open File > Build Settings > Player Settings. The Player Settings window appears. Turn on the Virtual Reality Supported option in the Other Settings section.
The following figure shows a screenshot of this window.
Figure 7-1 The Player Settings window
- Set the parent for the camera. All camera controls must set the camera position and orientation to this camera parent.
- Associate the camera control with the VR headset touch pad, if necessary.
For Android devices, enable the Developer options menu and turn on USB debugging.
The following figure shows the Developer options menu.
Figure 7-2 The Developer options menu
- Build the application and install it on the device.
- Launch the application.
When you launch the application on a Samsung device, it prompts you to insert the device into the headset. If the device is not ready for VR, it prompts you to connect to the network to download the Samsung VR software.
This section contains the following subsections: