Setting up Virtual Reality Development for Android in Unity
To enable Virtual Reality support in Unity, simply open the Player Settings from File > Build Settings… > Player Settings and open the Other Settings tab. Enable Virtual Reality Supported, this will automatically select the Oculus Virtual Reality SDK that is packaged with Unity.
Set the Minimum API Level to Android 4.4 ‘Kit Kat’ (API Level 19) to support the VRee Platform
Now that the Oculus Virtual Reality SDK has been enabled, an Oculus signature file has to be generated in order to access low-level VR functionality on the Android device. To do this, go to the Oculus osig Generator (https://dashboard.oculus.com/tools/osig-generator/) and log in with an Oculus or Facebook account. On this page, an Oculus Signature File is generated based on the device ID.
To get the device ID, connect the Android device to the development PC and navigate to the Android SDK folder. In this folder, open the platform-tools folder. Shift click in this folder to open the command line or shell as seen in Figure 5.
In the shell, enter: ./adb devices. In the command line, enter: adb devices. The output should look something like this:
List of devices attached
In this example ce0551e7 is the device ID. Copy the ID, paste it in the device ID field on the Oculus Signature File Generator and download the file. Place the file in the Assets > Plugins > Android > assets folder next to the PUT_OSIG _HERE file in the Unity project.
If the device is connected to the PC and no devices show up in the list of devices attached, make sure that developer options are enabled on the device and the development PC has access to USB debugging.