Hey everyone,

As you can imagine, we present Oculus Rift + Unity apps almost every day. To help your own presentations and demos run smoothly, here's a helpful step-by-step guide to mirroring Unity with the Oculus Rift on Windows.

This works with:

Oculus v0.4.3 Beta: https://developer.oculusvr.com/?action=dl (login may be required)

Open Broadcaster Software 0.637 Beta: https://obsproject.com/download

Unity 4.5.5 apps (install not required)

Step 1: Setup Oculus Rift

Install Oculus v0.4.3 Beta

Plug in the Oculus Rift

Open Oculus Task Manager > Rift Display Mode > Set Display Mode to Extend Desktop to HMD

Open Screen resolution > Make sure Rift DK2 monitor is detected. If it's blacked out, extend to it. Make sure the orientation is correct.

Step 2: Set up Open Broadcaster Software (The order of these steps is important)

Install Open Broadcaster Software 0.637 Beta

Start your Unity+ Oculus app

IMPORTANT: Alt+Tab out of the app. (This is because when a Unity + Oculus app starts, the mouse will be disabled.)

Start Open Broadcaster Software 0.637 Beta

Right+click inside Sources > Add > Game Capture (name doesn't matter) > Application > Select Unity app > OK

Make sure the Open Broadcaster Software is maximized > Press Preview Stream (black screen is expected, because the application is defocused)

Refocus the Unity app, either by clicking the icon on the taskbar or Alt+Tabbing back into it.

Example with VR Widgets:

FAQ and Troubleshooting

What if my computer isn't detecting Oculus?

Check the connections (Both on the computer and on the Oculus). Sometimes the connections on the Oculus goes loose. If that doesn't work, check if the Oculus is enabled on Screen Resolution and is set to Extend Mode.

What if the Unity app crashes during refocusing/defocusing?

Here's a simple (albeit non-pretty) solution:

Make sure the Unity app is NOT running

Make sure the Unity app is still the one selected under Game Capture in the Open Broadcaster software

Preview Stream (yes, before the Unity app has started)

Run the Unity app. IMPORTANT: Do not Alt+Tab or defocus it or you risk crashing it again!

You'll now see the last main view of the window before the Unity app started including the explorer that you started the Unity app with

Complex (pretty) solution:

Make sure the Unity app is NOT running

Make sure the Unity app is still the one selected under Game Capture in Open Broadcaster Software

Here come the tricky parts. Do these in exact order:

Focus Open Broadcaster Software

Focus the explorer with the Unity app and highlight the Unity app

Alt+Tab (this should focus Open Broadcaster Software)

Preview Stream (yes, before the Unity app has started)

Settings > Fullscreen Preview Mode. Everything will be black. Don't worry.

Alt+Tab (This focuses the explorer with the Unity app but you won't see it)

Press Enter (VOILA!)

Q: What just happened?!

The explorer had Unity app as the active item because you highlighted it. After fullscreening Open Broadcaster Software and alt+tabbing, the explorer is now focused with the Unity app selected. Pressing Enter would cause the Unity app to start.

(Props to the amazing Wilbur Yu for this guide -- hopefully it helps you avoid a pitfall or two! Let us know if you have your own tips and tricks for VR presentations.)