Unity Gaming: Oculus Integration – Unity 5

Hey Everyone!

With Unity 5.2 out and all the cool new features with Virtual and Augmented Reality. I thought I’d do a quick tutorial about how to integrate Oculus into your Unity 5.2 or higher project. I’m walking through set up for a windows machine.

Step 1: Download

Go to Unity’s Home page and download Unity 5.2. Then go to the Oculus websites downloads section. Download the SDK, Runtime, and Utilities for Unity.

OculusDownloads

Step 2: Unity Plugins

Import the Oculus Plugin for Unity. In your Unity Project go to the Menu and select Assets>Import Package>Custom Package

In the File Explorer Select the Plugin you downloaded from the Oculus website.

UnityPlugin

Step 3: Oculus Prefab

Drag the Prefab into your scene, or the camera rig onto your character.
Prefab

Step 4: Enable VR development in Unity

The newest and most important step – ENABLE VR FOR THE EDITOR! Do this by going to Player Settings and selecting the box for Virtual Reality Development

PlayerSettings
VRSupported

Now run the Game. It should exactly the same. But if you have an Rift set up the it will mirror the Unity Editor Game View.

And there you have it. Complete integration =)

Happy Coding!

-TheNappingKat


3 thoughts on “Unity Gaming: Oculus Integration – Unity 5”

  1. i use unity 5.2 , OculusUtilities_0_1_2_beta and runtime 0.7 but when i play. game view just one screen not make mirror (like 2 screen), why ? 🙁

    1. Hi ica,
      Can you give me more information about the system your running on? Double check that the settings on the Oculus configuration utilities are set to Extended as well.

      -Thenappingkat

Leave a Reply

Your email address will not be published. Required fields are marked *