Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Abstract

In this tutorial, we will learn how to use the premade Workshop-Sandbox repository alongside the Motive SDK in order to use the SteamVR apps found on both Unity and Steam.

Prereqs

  1. Clone the workshop-sandbox repository onto your system and be sure to use the “Master” branch

  2. Clone the attached unity-sdk-private repository into your project and check out the “ryan-dev-steam-vr” branch

    1. git checkout ryan-dev-steam-vr

  3. Download SteamVR onto your system through the Steam software

Steps

  1. Open your recently downloaded Unity project and in the Project tab search for “SampleScene” then open it

  2. Next, press ctrl-9 and open the Unity Asset Store

    1. In the search bar, type “SteamVR”

    2. Download the SteamVR package and then press import when prompted and make sure everything is included

  3. Then, in your scene Hierarchy tab under “World” find “XR Toolkit Player” and delete it

    1. Then in the Project tab again search for “Open VR Player”

    2. Drag the Open VR Player object where XR Toolkit Player used to be

  4. Alter the transform position values on Open VR Player until it is in the workshop

  5. Select Edit > Project Settings > Player > Other Settings and under Scripting Define Symbols delete all the extra text, then type in “MOTIVE_STEAM_VR”

    Image Modified
  6. When the prompt appears, select “Unity XR”

  7. Close all windows in Unity, then save and restart Unity

  8. When Unity reopens, if you are prompted with a window titled “Valve.VR.SteamVR_UnitySettingsWindow” select the “Accept All” option

  9. Then, select Edit > Project Settings > Player > XR Plug-in Management anddisable Oculus and enable Open VR Loader:

    Image Modified
  10. Next, in your Project tab, select Assets\Motive\Runtime\Integrations\VR\Open VR\Input and thenright-click on the SteamVR folder and select “Show in Explorer”

    1. From there, copy the “SteamVR” folder and the “SteamVR.meta” file

  11. Back in the Unity project, in the Project tab, search for Assets\Streaming Assets and then right-click on the SteamVR folder and select “Show in Explorer”

    1. From there, delete any existing folder and meta file, then paste in the ones you just copied

  12. Next, back in Unity, select Window > SteamVR Input > Save and Generate

...

  1. Image Added
  2. Finally, hit the play icon at the top center of the Unity Project, and your Workshop-Sandbox should open through SteamVR

Related Articles

Vive Wave XR Plugin

Adding the Vive Registry

Configuring Oculus XR Plugin

Configuring Pico Neo 3

Configuring Pico Open XR