To build for Samsung GearVR and Oculus Go mobile devices, you will use the Oculus SDK. These are both Android-based devices so you must set up your development machine for Android development as described previously (Oculus Go is binary and compatible with GearVR). Then complete the following steps in Unity:
- Configure your Unity Build Settings to target the Android platform.
- In Player Settings, under XR Settings, set Virtual Reality Enabled
- Ensure Oculus is at the top of the Virtual Reality SDKs list.
- Download and Install the Oculus Integration package from the Asset Store, as instructed previously.
Now we will add the OVR camera rig to the MeMyselfEye object in our scene. These steps are like the Standalone Oculus Rift setup described previously. In this case, you can use the same MeMyselfEye prefab for both Rift and GearVR.
- Look in your Project...