Oculus Go: Quick Start

This guide covers everything you need to know to get started developing Unreal applications for the Oculus Go.

Setup the Oculus Go

Setup the headset, as described in Getting Started With Your Oculus Go

Select an Unreal Engine Distribution

There are a number of ways that you can obtain the Oculus Unreal distributions:

  • A binary distribution is provided through the Epic Game Launcher. This Oculus code may be a version or two behind the latest Oculus SDK. We recommend that beginning developers use this binary distribution. It is stable, and does not require pulling the source from GitHub, setting up Visual Studio, and performing a lengthy compilation of the entire Unreal game engine source code.
  • A source distribution is provided through the Epic GitHub Repository. This Oculus code may be a version or two behind the latest Oculus SDK. Please see the Epic GitHub Repository table in Version Compatibility Reference, in order to choose the specific downloads that best suit your development criteria.
  • A source distribution is provided through the Oculus GitHub Repository. These distributions are always 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.

To access these GitHub repositories, you must be subscribed to the private EpicGames/UnrealEngine repository (see UE4 of GitHub for details). If you are not subscribed and logged into your GitHub account, you will receive a 404 error. An Unreal license is not required.

Prerequisites

Note: An Oculus Signature File (OSIG) is not required for Oculus Go.
  • All versions of the Oculus Unreal SDK require Windows 7 or later.
  • Setup the Oculus Go for running, debugging, and testing applications, as described in Device Setup - Oculus Go.
  • Install CodeWorks for Android 1R6u1, which can be found in Engine\Extras\AndroidWorks\platform].

Enabling Unknown Sources

In order to play an in-development application, you must enable the Oculus system to run applications from unknown sources by using the Oculus application 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 must 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 application, and may be launched normally, as long as Unknown Sources is enabled.

Developing Applications with the UE4 Editor

  1. Download and setup the Unreal engine that you wish to use. Make sure you are using a compatible set of SDKs, as shown in the Version Compatibility Reference.
  2. From the Unreal Engine Launcher, press the Launch button to open the Unreal Project Browser.
  3. From the New Project tab of the Unreal Project Browser, create a new Blueprint project, with the following settings:
    • Blank project
    • Mobile / Tablet
    • Scalable 3D / 2D
    • No Starter Content
    • Set the folder location
    • Set the project name
    Your screen should look like this:
  4. Press the Create Project button to create the project and load the UE4 Editor. A blank project appears in the editor:
  5. Select Edit > Plugins, choose the Virtual Reality section, and make sure that the OculusVR Plugin is enabled.
  6. In order to be able to run any Unreal Engine project when it is deployed to a device, including the Oculus Go, you must save at least one UE4 Level. To keep the current Level, press the Save icon in the toolbar to save it. Give it a name, such as GoQSMap.
  7. Select Edit > Project Settings. Then, under Project, select the Maps & Modes section:
  8. Under Default Maps, set both the Editor Startup Map and the Game Default Map to the Level that you just saved:
  9. Scroll down and select Engine > Input. Locate the Mobile section:
  10. Set the Default Touch Interface to None:
    The result should look like this:
  11. Scroll down to the Platforms section, select Android. Then scroll down on the right-hand side to the APK Packaging section, and if necessary click Configure Now:
  12. Set the following settings:
    • Minimum SDK Version: 19
    • Target SDK Version: 19
    • Enable FullScreen Immersive on KitKat and above devices: True
  13. Scroll down to the Advanced APK Packaging section, and enable Configure the AndroidManifest for deployment to Gear VR:
    Note: Oculus Go uses the same Android manifest settings as Gear VR. In Unreal 4.20 and later, this option has been renamed to reference Oculus Mobile (rather than Gear VR).
  14. Click on the Android SDK section, and make sure that Android SDK tools that are needed to build your project point to the correct folder on your PC and set to the following API levels:
  15. Scroll to the Engine section, select Rendering, and make sure Mobile HDR is turned off:
  16. You should now be able to develop your Unreal application for the Oculus Go!

Launch the Unreal Project on the Oculus Go

This section describes how to launch your UE4 project so that it can be viewed in the Oculus Go headset.

  1. Make sure your Oculus Go is connected to your development PC via the USB cable.
  2. Make sure you have installed and can run the Android Debug Bridge (ADB), and that your PC can see the Oculus Go using the ADB command adb devices. For more information, see Adb in the Mobile SDK Developer Guide.
  3. In the UE4 Editor, click beside the Launch icon to open Options for Launching on a Device:
  4. From the drop down list, select the device you want to deploy to. If you are prompted to save the project, make sure to do so even if you recently saved it. This will ensure that the latest content resides on your Oculus Go.
  5. In the lower corner of the UE4 Editor, a progress bar indicates the status of the packaging process. If this is the first time you are packaging your project, it could take a few minutes, depending on the size of your project.
  6. When the process is complete, you should be able to launch the project and view it within your Oculus Go headset.

Application Distribution Requirements and Guidelines

When you are ready to distribute your application, an Android Distribution Keystore is required for submission to the Oculus Store.

Before building your final release package, create a new Android keystore as described in the section “Manually Sign an APK” in Android's Sign your Applications guide. Once you have generated your distribution keystore, in the Unreal Editor, go to Edit > Project Settings > Platforms > Android, scroll down to Distribution Signing, and enter the required information.

See the Application Signing section of the Mobile SDK documentation for more information.

Note: It is important to review Distribute, which covers Oculus Store submission requirements and guidelines.