Samsung Gear VR UE4 Quick Start

Instructions on how to quickly setup and deploy projects for use with the Samsung Gear VR Headset.

Windows
MacOS
Linux

GearVRHT_BannerImage_00.png

Goals

The Gear VR Quick Start will walk you through how to set up your development PC and Samsung Smartphone to work with the Gear VR headset.

Objectives

  • Create a new UE4 project that is targeted towards Gear VR development.

  • Setting the required project settings so your project can be used with Gear VR.

  • Deploying and viewing your UE4 project with the Gear VR HMD.

1 - Gear VR Project Creation

In the following part of the Gear VR Quick Start, we will go over setting up a new Unreal Engine 4 (UE4) project that can be used with Gear VR.

Steps

  1. From the Unreal Engine Launcher make sure that you have UE4 version 4.17 or later downloaded and installed. Then press the Launch button to open the Unreal Project Browser.

    Click for full image.

  2. From the New Project tab of the Unreal Project Browser, create a new Blueprint based project that is Blank and uses the following settings.

    Click for full image.

    • Blank Project

    • Mobile / Tablet

    • Scalable 3D / 2D

    • No Starter Content

  3. Next, set the project's location and give it a name. For this example, the name will be GearVRQS but feel free to pick any name you want. When that has been completed, press the Create Project button to create the project and load the UE4 Editor.

    Click for full image.

End Result

When completed you should now have a new Blank project created that is ready to be set up for use with Gear VR.

2 - Gear VR Project Setup

In the following part of the Gear VR Quick Start, we will go over setting up an Unreal Engine 4 project so that it can be used with the Gear VR HMD.

Steps

  1. Once the Editor has loaded, go to the Main Toolbar and select Edit > Plugins to open up the Plugin Menu. From the Plugin Menu, choose the Virtual Reality section and make sure that the OculusVR Plugin is enabled.

    Click for full image.

    In previous versions of the Engine, Gear VR had its own Plugin that needed to be enabled. If you are not able to use Gear VR with the version of Unreal Engine 4 that you are using, make sure to check the VR Plugins section and enable the Gear VR plugin if it is available.

  2. For any Unreal Engine project to run when it is deployed to a device, you will need to have at least one Level saved. To keep the current Level, go to the Toolbar and press the Save icon to save it, naming it GearVRQSMap.

    Click for full image.

  3. Next, from the Main Menu, go to Edit > Project Settings. Under Project in the Maps & Modes section, find Default Maps and set it to the Level that was just saved in the Editor Start Up and Game Default Map.

    Click for full image.

  4. Now, go to Engine > Input. In the Mobile section, set the Default Touch Interface to None by clicking on the Default Touch Interface input box and selecting None from the drop down.

    Click for full image.

  5. In Platforms, under Android, go to the ApkPackaging section and press the Configure Now button then set the following settings:

    Click for full image.

    • Minimum SDK Version: 19

    • Target SDK Version: 19

    • Enable FullScreen Immersive on KitKat and above devices: True

  6. Next, go to the Advanced APKPackaging section and enable the Configure the AndroidManifest for deployment to Gear VR check mark box.

    Click for full image.

  7. Now, 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:

    Click for full image.

End Result

When completed, you will have an Unreal Engine 4 project that is ready to be deployed and viewed with your Gear VR HMD.

3 - Gear VR Project Packaging & Deployment

In the following part of the Gear VR Quick Start, we will go over how to launch your UE4 project so that it can be viewed with the Gear VR HMD.

Steps

  1. First, make sure that your Samsung Galaxy Smartphone is connected to your development PC via a USB cable and that your PC can see the device using the ADB command ADB Devices.

    If you are not sure how to do this, make sure to check out the Gear VR Prerequisites page for more information.

  2. From the Main Toolbar, click on the small white triangle next to the Launch icon to open the Options for Launching on a Device.

    Click for full image.

  3. From the drop down list, select the device you want to deploy to by clicking on it.

    Click for full image.

    If prompted to save, make sure that you do even if you just saved before to ensure that the latest content makes it onto your device.

  4. Check in the lower corner of the UE4 Editor; a progress window will be displayed that will tell you what stage the packaging is currently on. If this is the first time you are packaging your project, this could take a few minutes depending on the size of your project.

    Click for full image.

    To see detailed information about what is currently happening during the packing process, click on the Show Output Log link in the progress window.

  5. When the packing and installing process has completed, a notification will be displayed, and a sound will be played.

End Result

Once your project has finished being packaged and installed to your device, you will now be able to launch the project and view it using your Samsung Galaxy smartphone and the Gear VR HMD.  When you do this you should see something similar to the following video.

4 - On Your Own!

Now that you can deploy a UE4 project and view it with your Gear VR HMD, try and do the following with your project.

  • Use the Migrate Tool to move content from one of the mobile content examples into your project for use.

  • Adjust the settings of the Default Device Profiles to ensure that your project will run as fast as possible when deployed to your Android based smartphone.

  • Use the GPU Profiler to help track your project's performance while you are building it.

As for specifics covered in this quick start:

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback