This guide covers everything you need to know to get started developing Unreal applications for Oculus Rift. This topic contains the following sections:
Before you get started, review the minimum and recommended specs on the Rift S page to make sure your system can run an Oculus Rift.
You should also review the Oculus Developer Policies before you start. For more information, see Oculus Developer Policies.
Download the Oculus Software for Oculus Rift S from the Get Started in VR page.
Set up your headset following the instructions.
In order to play an in-development application, you will need to enable the Oculus system to run applications from unknown sources by using the Oculus app settings, available through the gear icon in the upper-right. Select Settings, then select the General tab, and turn on Unknown Sources to allow this.
The first time you run an application that you have not downloaded from the Oculus Store, you will need to launch it directly. Once you have run an application from an unknown source at least once, it will then appear in the Library section of Home and the Oculus app, and may be launched normally, as long as Unknown Sources is enabled.
There are a number of ways that you can obtain the Oculus Unreal distributions.
See the Version Compatibility Reference, and Release Notes to help you choose a distribution.
You can obtain a binary distribution with the Epic Game Launcher. This Oculus code may be two or more versions behind the latest Oculus SDK, but if you are a beginning developer, choose this this binary distribution. It is stable, and does not require downloading the source from GitHub, setting up Visual Studio, and compiling the entire Unreal game engine source code, which is a lengthy process. The following image shows an example:
You can also get source distributions from GitHub if you have the correct access.
To access the Epic and Oculus GitHub repositories, you must be logged in to GitHub and subscribed to the private EpicGames/UnrealEngine repository. See UE4 on GitHub for details. Otherwise, you will receive a 404 error when you try to access the repository links. An Unreal license is not required.
You can obtain the most up-to-date source distribution from the Oculus GitHub Repository. These distributions are the most up-to-date with the latest Oculus SDKs. We support the current release of UE4 and any preview of the next release of UE4. Please see the Oculus GitHub Repository table in Version Compatibility Reference, in order to choose the specific downloads that best suit your development criteria. While new Oculus features ship first to the Oculus GitHub versions, API changes may occur when these branches are merged back into Epic’s version of the engine. We recommend these distributions for professional developers who would like to access the latest Oculus SDK features. In order to build this source base, see Building UE4 from Source.
You can obtain a source distribution from the Epic GitHub Repository. This Oculus code may be several versions behind the latest Oculus integrations. Please see the Epic GitHub Repository table in Version Compatibility Reference, in order to choose the specific downloads that best suit your development criteria.
At the bottom of the screen:
Your screen should look like this:
In this section, you will enable the Oculus plug in and modify some project settings to work with Oculus devices.
Select Edit > Plugins, choose the Virtual Reality section, and make sure that the OculusVR Plugin is enabled.
Select Edit > Project Settings, scroll to Plugins and select OculusVR to configure different aspects of your Oculus app such as whether it supports Oculus Dash. For more information, see Plugin Settings.
Launch the application to your Oculus Rift from the Play menu by choosing VR Preview. Put on your headset and you should see your app in the device.
It is recommended that all Unreal apps implement the Entitlement Check to verify that the user’s app is legitimate. For information about how to implement the Entitlement Check, please see the Unreal Development Getting Started in the Platform Solutions section.
If you want to distribute your app in the Oculus Store, you should review the app requirements and submission process.