Setup guide
38 | Migrating From Earlier Versions | Unity
Deprecated Use Instead
cameraController.FarClipPlane cameraRig.rightEyeCamera.farClipPlane
cameraController.GetCamera() cameraRig.rightEyeCamera
OVRDevice.ResetOrientation(); OVRManager.display.RecenterPose();
cameraController.ReturnToLauncher(); OVRManager.instance.ReturnToLauncher();
OVRDevice.GetBatteryTemperature();
OVRDevice.GetBatteryLevel();
OVRManager.batteryTemperature
OVRManager.batteryLevel
if ( cameraController.GetCameraForward( ref cameraForward ) &&
cameraController.GetCameraPosition( ref cameraPosition ) )
{
...
to
if (OVRManager.display.isPresent)
{
// get the camera forward vector and position
Vector3 cameraPosition = cameraController.centerEyeAnchor.position;
Vector3 cameraForward = cameraController.centerEyeAnchor.forward;
...
Mobile SDK v 0.5
The Universal Menu is now no longer a part of VrLib. This allows modifications to the Universal Menu without
requiring each app to upgrade to the latest SDK. The Universal Menu is now part of the Oculus System Activities
application and is downloaded and updated alongside Oculus Home and Horizon. Make sure you update your
version of Home in order to test your application with the new Universal Menu.
One benefit of moving the Universal Menu out of VrLib into the Oculus System Activities application is that you
will no longer need to include the Universal Menu resources in your Unity app.
It is no longer necessary to include the following folders in your app, and they are no longer included with the
Unity Integration package provided with this SDK:
• Plugins/Android/res/raw
• Plugins/Android/rew/values
Additionally, the following activity should be removed from your AndroidManifest.xml file:
<activity android:name="com.oculusvr.vrlib.PlatformActivity"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
android:launchMode="singleTask"
android:screenOrientation="landscape"
android:configChanges="screenSize|orientation|keyboardHidden|keyboard">
The following permission is no longer required by VrLib and can be removed from your AndroidManifest.xml file
if your app does not rely on it for other purposes:
<uses-permission android:name="android.permission.CAMERA" />










