Valve maintains a Unity plugin to smoothly interface SteamVR with Unity. With SteamVR developers can target one API that all the popular VR headsets can connect to. The modern SteamVR Unity Plugin manages three main things for developers: loading 3d models for VR controllers, handling input from those controllers, and estimating what your hand looks like while using those controllers. On top of managing those things we have an Interaction System example to help get your VR application off the ground. Providing concrete examples of interacting with the virtual world and our APIs.
The SteamVR runtime must be installed. This can be downloaded from Steam under the Tools category. Or by clicking here. As developers we strongly recommend that you opt-in to SteamVR beta so you can test new features and verify your application works with the latest versions of SteamVR.
- This version of the SteamVR Unity Plugin is compatible and has been tested with Unity versions 5.4 - 2019.1
Documentation can be found online here: https://valvesoftware.github.io/steamvr_unity_plugin/
-
Follow the Quickstart guide on this site
-
If you want to explore the Interaction System scene you'll need to open the SteamVR Input window (under the Window Menu), click yes to copy example jsons, then click Save and Generate to create input actions.
-
For the most simple example of VR with tracked controllers see the sample scene at /SteamVR/Simple Sample
-
For a more extensive example including picking up, throwing objects, and animated hands see the Interaction System example at /SteamVR/Interaction System/Samples/Interactions_Example
If you're having trouble with the plugin the best place to discuss issues is our github here: https://github.com/ValveSoftware/steamvr_unity_plugin/issues/
If you'd like to discuss features, post guides, and give general feedback please post on the steam forum here: https://steamcommunity.com/app/250820/discussions/7/