The Oculus platform provides a wide range of capabilities able to run under the Oculus client for windows standalone and on Android with the Oculus Quest.
To develop for the Oculus platform, you will need:
- A Windows PC, Windows 7 or greater or a Mac with 10.1 or greater (Quest/Android only)
- The Oculus client, installed and running
- An Oculus Device, Rift or Quest 1/2
- The XRTK.SDK package installed (first)
- The XRTK.Oculus package (once a Mixed Reality Scene has been setup)
- Building for Oculus Quest is rather unique, if you have your Oculus Quest connected to your machine via a high speed USB3 cable and have the Oculus Client running, you can run Quest project in Windows Standalone mode directly on the Quest via Oculus Link, please see Oculus Support for further details. This will enable both controller and hands support for quick development.
- For oculus Rift, you simply need to ensure that
Oculusis one of the configured platforms in the Unity legacy XR settings for theStandaloneplatform - For Oculus Quest (on device), you will need the Android SDK/NDK installed with Unity and the
Oculusplatform configured in the Unity legacy XR settings for theAndroidplatform. You also need to include anAndroidManifest.xmlincluded as a Plugin in your Projects Asset folder (the XRTK provides one via theMixedRealityToolkitmenu) - For Oculus Quest (via Oculus Link), you will need the
Oculusplatform configured in the Unity legacy XR settings for the Standalone platform
The following capabilities are currently available for the Oculus platform
- Headset Tracking
- Oculus Touch controllers
- Oculus Hands implementation (Editor with Oculus link and On Device only)
- Oculus Native API, available via the
XRTK.Oculus.Pluginsnamespace
The following capabilities are not currently available or are in development
- Oculus Boundary (System boundary enabled by default)
- Create a new Unity Project
- Setup the Legacy XR settings in "Edit -> Project Settings -> Player -> XR Settings" for
Oculusto the Windows Standalone and Android platforms - Add the XRTK UPM registry to Unity by Opening the Unity Package Manager (
Window -> Package manager), selecting theAdvanceddrop down and clicking onAdvanced Project Settings, then Adding the following details:Name: XRTK
Scope(s): com.xrtk
- Return to the Unity Package manager and select
My Registriesin the Sources) dropdown (next to the+symbol) - Select the
XRTK.SDKand clickInstall - Install the
XRTK.Oculusplatform - When prompted, install the Oculus platform configuration in to your current project
- Close the Unity Package Manager and return to your scene
- Select or create the scene you want to create Mixed Reality Content in
- Select
Mixed Reality Toolkit -> Configurein the Unity Menu. THis will update your scene and add the MixedRealityToolkit instance. - Install an Android Manifest in to your project using
Mixed Reality Toolkit -> Tools -> Oculus -> Create Oculus Quest compatible AndroidManifest.xmlin the Editor menu - Enable the
Mock HMDXR Loader in the XR SDK Manager
For Oculus Rift / Quest
- Ensure the Oculus client is running before playing
- If using Oculus Quest via Oculus Link, ensure your cable is connected and you have started Oculus Link on the device. (We recommend disabling the Oculus home in the Oculus Client settings for rapid development, and saving memory on your dev machine)
- If using Oculus Quest for android, ensure your cable is connected and your device is setup for
Developer modefrom the Oculus mobile application used to configure the device. ALso ensure Oculus Link is NOT running when building and deploying for Android
If there is anything not mentioned in this document or you simply want to know more, raise an RFI (Request for Information) request here.