Skip to content

Setting up SteamVR

steamvr

SteamVR™  is the ultimate tool for experiencing VR content on the hardware of your choice.

View Full Documentations


Quickstart

You will need to have SteamVR™ installed through Steam and a SteamVR™ -compatible headset.

Get SteamVR on Steam View on Web


Importing on Unity

  1. Import SteamVR Plugin from the Asset Store by going to Window →  Asset Store or clicking on the Asset Store tab in the editor.Asset Store in Window dropdown

  2. Search for SteamVR in the search box.unity-assetstore-steamvr

  3. Scroll down and find the SteamVR Plugin.unity-assetstore-steamvr

    Info

    SteamVR is free on the Unity Asset Store. Make sure you select the correct one!

  4. To import the SteamVR Plugin:

    • Click on the blue Import button.

    Note

    If this is your first time importing, you need to first Download before importing.

    unity-assetstore-steamvr2

  5. Wait for the dialog to finish.
    wait for dialogue

  6. Click the All button at the bottom left corner →  Import.
    click "all" then "import"

  7. If this is your first time setup, this may pop up. Click on Legacy VR.
    unity-assetstore-steamvr5

    Info

    You could also use UnityXR, but there will be several bugs related to it. We recommend sticking to Legacy mode until it is made obsolete for real

  8. Since we are developing for VR, click on Yes.
    unity-assetstore-steamvr6

  9. Again, first time setup, click Accept All.
    unity-assetstore-steamvr7

  10. Click Ok.
    unity-assetstore-steamvr8

  11. You have successfully imported SteamVR Plugin to Unity! You should find that the following have been added to your Project Manager.
    unity-assetstore-steamvr9


Enabling VR Support

Before you can use SteamVR on Unity, you will need to change some settings to enable VR features.

  1. Click on File →  Build Settings.
    enable-vr1
  2. Click Player Settings.
    enable-vr2
  3. Click on Player on the left bar →  Computer Icon.
    enable-vr3
  4. Navigate to XR Settings.
    enable-vr4
  5. Make sure that Virtual Reality Supported is checked.
    enable-vr5
  6. Under the Virtual Reality SDKs, make sure that OpenVR is there.
    enable-vr6
    • If OpenVR is missing, click on the + icon and select OpenVR.
      enable-vr6a
  7. Remove any other SDKs (e.g. Oculus) by selecting them and clicking the - icon.
    enable-vr7
  8. You can now close all the settings windows.

Basic Scene

This section will teach you several SteamVR features that you would use when developing an app.

Adding a VR Player

Adding a VR-mode player is as easy as drag and dropping a prefab to the scene - literally!

  1. Search for a Player prefab under SteamVR assets.
    steamvr-import-player1
  2. Drag and drop to the the scene or the project hierarchy.
    steamvr-import-player2
  3. Delete the Main Camera object from the scene hierarchy.
    steamvr-import-player3
  4. That's it!