Building for SteamVR
To target your app to use HTC VIVE you will use the OpenVR SDK. This SDK also supports Oculus Rift with Touch controllers, and Windows Immersive Mixed Reality (IMR) devices:
- Configure your Unity
Build Settings
to target theStandalone
platform. - In
Player Settings
, underXR Settings
, set Virtual Reality to Enabled - Ensure
OpenVR
is at the top of theVirtual Reality SDKs
list. - Download and
Install
the SteamVR Plugin from the Asset Store, as instructed previously.
- When you install
SteamVR
you may be prompted to accept recommended changes to your project settings. Unless you know better, we recommend you accept them.
Now we will add the SteamVR camera rig to the MeMyselfEye
object in our scene:
- Look in your
Project
window; under theAssets
folder, you should have a folder namedSteamVR
. - Within that is a subfolder called
Prefabs
. Drag the prefab named[CameraRig]
from theAssets/SteamVR/Prefabs/
folder into your hierarchy. Place it as a child object ofMeMyselfEye
. - If necessary, reset...