Unity 1.26 Reference Guide
Using Unity with the Oculus Rift and Samsung Gear VR
Welcome to the Oculus Unity SDK. Unity provides one of the fastest paths to building immersive virtual worlds. To learn more about the SDK and how to build great experiences, please see the Oculus Utilities for Unity Guide and the Oculus Best Practices Guide. Both are available on the Oculus website under
Documentation.
To use the Oculus Utilities for Unity, follow these steps:
Find and import OculusUtilities.unitypackage.
Remove or disable any Camera in your scene that doesn't have a target texture.
Build and run your project.
Note: Only D3D11 and D3D12 are currently supported on Windows.
The Utilities API consists of three main MonoBehaviours:
OVRCameraRig Performs head tracking and stereo rendering. Exposes the user's head pose with "anchor" bones.
OVRManager A singleton that exposes the VR configuration and status to Unity.
The following static members of
OVRManager provide full access to the VR display.
OVRDisplay Exposes the user's head pose and rendering state.
OVRTracker Exposes the infrared tracking sensor's pose and status.
OVRInput Exposes the user's hand poses and controller button/axis states.
OVRHaptics Enables precise haptic feedback on the user's hands.