You copied the Doc URL to your clipboard.

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:

  1. Install Unity version 5.1 or later. Unity version 5.1 and later natively support VR.
  2. 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.

  3. 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

    A screenshot of the Player Settings window

  4. Set the parent for the camera. All camera controls must set the camera position and orientation to this camera parent.
  5. Associate the camera control with the VR headset touch pad, if necessary.
  6. 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

    A screenshot of the Developer options menu

  7. Build the application and install it on the device.
  8. 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 subsection:

Was this page helpful? Yes No