Legacy Documentation: Version 2018.2 (Go to current version)
Oculus
Single Pass Stereo rendering (Double-Wide rendering)
Other Versions

OpenVR

Getting Started (OpenVR)

Steam is required to run OpenVR applications, so install Steam and SteamVR. Once SteamVR is working properly with your headset, add OpenVR to the list of supported SDKs (see below to learn how to do this). If you require additional functionality beyond Unity’s built-in support, see the SteamVR asset store package.

Supported Platforms

OpenVR is supported on the followng platforms:

  • Windows
  • macOS

macOS Specific

  • Unity OpenVR on a macOS requires the Metal graphics and 64bit application target, OpenGL is not supported.

  • OpenVR supports macOS 10.11.6 or later, but is optimized for macOS 10.13 High Sierra or later.

Inputs

See documentation on OpenVR Controllers for input control mapping.

Upgrading a project that contains the SteamVR Package

  • Enable virtual reality support. Open the Player SettingsA settings manager that lets you set various player-specific options for the final game built by Unity. More info
    See in Glossary
    (menu: Edit > Project SettingsA broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your Project behave. More info
    See in Glossary
    > Player), select Other Settings and check the Virtual Reality Supported checkbox.
  • Use the Virtual Reality SDK list displayed below the checkbox to add OpenVR.
  • Enter Play Mode in the Editor to test the build.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答