Oculus Unity Getting Started Guide

This guide describes initial setup of the Oculus Unity Integration and building Oculus apps using Unity’s first-party support.

Free and Professional versions of Unity Editor support both PC and Android development. VR support is enabled by simply checking a checkbox in Player Settings.

Enable VR support in Unity editor in player settings

See the recommended versions of the Unity Editor on the Compatibility and Version Requirements page.

Oculus Integration for Unity

To supplement Unity’s built-in VR support, Oculus offers the Oculus Integration for Unity which includes scripts, prefabs, and other resources. The package includes an interface for controlling VR camera behavior, a first-person control prefab, a unified input API for controllers, advanced rendering features, object-grabbing and haptics scripts for Touch, debugging tools, and more.

Samples

The Sample Framework includes sample scenes and scripts illustrating common VR features such as locomotion, in-app media players, crosshairs, UI, interaction with Game Objects with Oculus Touch, and more. Read more about the Sample Framework.

Getting Started

If you are just getting started as a Unity developer, we recommend spending time learning the basics with Unity’s Documentation and Tutorials.

Our Oculus Unity Getting Started Guide runs through environment setup, orientation, frequently asked questions, and basic steps necessary for creating Oculus applications in Unity.

Run through our simple Tutorial: Build Your First VR App for a quick hands-on run-through.

What this Guide Covers

This guide development with Unity’s first-party support, the Oculus Unity Integration, and the Sample Framework. Unity maintains documentation of Oculus features in their Editor in the Virtual Reality section of the Unity Manual.

Most information in this guide applies equally to PC and Android development. Exceptions are indicated where they occur.

For a complete reference for the C# scripts included in Oculus Utilities for Unity, see Unity Scripting Reference.

Getting Help

Visit our developer support forums at https://forums.oculusvr.com/developer/.