Unity 5 and later offers built-in Rift support. The Unity Integration provides additional prefabs, samples, and resources for VR development. This guide assumes development using the Oculus Integration.
To enable VR support in the Unity Editor, check the Virtual Reality Supported checkbox in Player Settings. Applications targeting the PC, Mac & Linux platform in Build Settings will now run on the Rift.
Unity automatically applies position and orientation tracking, stereoscopic rendering, and distortion correction to your main camera when VR support is enabled. For more details, see Unity VR Support.
If you have already set up your Oculus Rift for regular use, you are ready to begin Unity development.
Unity development for Rift requires the Oculus app (the PC application normally installed during Rift setup). If you have not already installed it, download it from the Setup page and install it. When Unity requires the Oculus runtime, it will automatically launch the Oculus app.
You may develop Rift apps on PCs that do not meet our minimum specifications or have a Rift connected. We strongly recommend having a Rift available for development to preview your apps as you go, but it is not required as long as the Oculus app is installed.
Advanced developers may find it useful to review our Oculus SDK documentation for more insight into the rendering pipeline and underlying logic. If that interests you, we recommend the PC Developer Guide for a deeper dive into core Rift development concepts.
If you are interested in submitting an application to the Oculus Store, please see our Distribute Guide. We recommend doing so before beginning development in earnest so you have a realistic sense of our guidelines and requirements.