

Alternatively, you can set the camera to render to a render texture using the Target Texture property. It is possible to disable rendering to the HMD using the camera component’s stereoTargetEye property. View and Projection matrices are automatically adjusted to account for head tracking, positional tracking and field of view. When VR is enabled in Unity, a few things happen automatically: Automatic rendering to a head-mounted displayĪll cameras in your scene are able to render directly to the head-mounted display (HMD). This list order will be the same in the built player. The first device that initializes properly will be the one enabled. The order of the list is the order that Unity will try to enable VR Devices at runtime. Use the Virtual Reality SDK list displayed below the checkbox to add and remove Virtual Reality Devices for each build target. Enabling virtual reality support in a standalone build will not also enable the support for Android (or vice versa). Select Other Settings and check the Virtual Reality Supported checkbox. To enable VR for your game builds and the editor, open the Player Settings (menu: Edit > Project Settings > Player).

A clean project folder with no external plugin for each device.A single API interface to interact with different VR devices.The VR API surface is minimal by design, but will expand as VR continues to grow.īy using the native VR support in Unity, you gain: It has been designed to provide forward compatibility for future devices and software.

It provides a base API and feature set with compatibility for multiple devices. Unity VR lets you target virtual reality devices directly from Unity, without any external plugins in projects.
