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
Clone the workshop-sandbox repository onto your system and be sure to use the “Master” branch
Clone the attached unity-sdk-private repository into your project and check out the “ryan-dev-steam-vr” branch
git checkout ryan-dev-steam-vr
Download SteamVR onto your system through the Steam software
Steps
Open your recently downloaded Unity project and in the Project tab search for “SampleScene” then open it
Next, press ctrl-9 and open the Unity Asset Store
In the search bar, type “SteamVR”
Download the SteamVR package and then press import when prompted and make sure everything is included
Then, in your scene Hierarchy tab under “World” find “XR Toolkit Player” and delete it
Then in the Project tab again search for “Open VR Player”
Drag the Open VR Player object where XR Toolkit Player used to be
Alter the transform position values on Open VR Player until it is in the workshop
Select Edit > Project Settings > Player > Other Settings and under Scripting Define Symbols delete all the extra text, then type in “MOTIVE_STEAM_VR”
When the prompt appears, select “Unity XR”
Close all windows in Unity, then save and restart Unity
When Unity reopens, if you are prompted with a window titled “Valve.VR.SteamVR_UnitySettingsWindow” select the “Accept All” option
Then, select Edit > Project Settings > Player > XR Plug-in Management anddisable Oculus and enable Open VR Loader
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”
From there, copy the “SteamVR” folder and the “SteamVR.meta” file
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”
From there, delete any existing folder and meta file, then paste in the ones you just copied
Next, back in Unity, select Window > SteamVR Input > Save and Generate
...
Finally, hit the play icon at the top center of the Unity Project, and your Workshop-Sandbox should open through SteamVR