VR Cheat Sheet

Quick tips and hints for VR development

Windows
MacOS
Linux

Running A VR Game

Unreal Engine 4 (UE4) now offers a number of different ways to run your Virtual Reality(VR) project depending on what your needs are. In the following section, we will cover the most common ways to run your UE4 VR projects for inside and outside of the UE4 editor.

For more detailed information on how to launch and run your UE4 projects make sure to check out the Running Unreal Engine page.

Running from the UE4 Editor

With the release of UE4 version 4.7 and later you can now view your UE4 VR project right from within the UE4 editor by changing the Play in Editor option from play in Selected Viewport (PIE) option to the VR Preview option.

VR_View_In_VR.png

Running from outside the UE4 Editor

You can also run a non cooked Standalone game by first creating a shortcut to the UE4Editor.exe and then supplying the following command line arguments.

UE4Editor.exe [MyProject] [MyMap] -game

Note that [MyProject] needs to be the absolute or relative path to your .uproject file.

Useful VR Console Commands

UE4 provides many useful Console Commands that can help in debugging any issues that you might run into when using a VR device. Here is a list of some of the most common commands that you might use as well as some that are specific to Oculus.

Common Commands

Command

Description

Stereo On/Off

Enables or Disables stereo rendering for Head Mounted Display (HMD) devices.

vr.PixelDensity

Sets the resolution of the VR pannel. Use a higher number for better quality, and a lower one for better performance.

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