SteamVR and XR Interaction Toolkit scripts to work them together
Credit: The Ghost Howls
https://skarredghost.com/2020/09/25/steamvr-unity-xr-interaction-toolkit-input/
- Download SteamVR – XR Pluging tarball
- https://github.com/ValveSoftware/unity-xr-plugin/releases
- [com.valvesoftware.unity.openvr-1.1.4.tgz]
- Download SteamVR
- https://github.com/ValveSoftware/steamvr_unity_plugin/releases
- [steamvr_2_7_3.unitypackage]
- Settings; Package Manager; Enable Preview Packages
- Settings; XR Plugin Management; Install
- Package manager; Unity Registry; XR Interaction Toolkit; Install
- Settings; Player; Active input handling; Both
- Package Manager + install from tarball; Install (Valve)Unity-XR-Plugin [com.valvesoftware.unity.openvr-1.1.4.tgz]
- Assets; Import package; Custom package; [steamvr_2_7_3.unitypackage]
- Window; Steam Input;
- Copy “<PROJECT_FOLDER>/ Library/PackageCache/[email protected]” to “C:/”
- Package Manager; XR Interaction Toolkit; Uninstall
- Copy back “C:/[email protected]” under “<PROJECT_FOLDER>/Assets/”
- If it gives error about “InputSystem” then Package manager; Unity Registry; Input System; Install
- Under xr file; Select -> Runtime/ Unity.XR.Interaction.Toolkit
- Inspector (Unity tab); Assembly Definition Reference; Add two new; SteamVR, SteamVR_Actions; Apply
- Modify “Runtime\Interaction\Controllers\XRController.cs”
- Modify “Runtime\XR\InputHelpers.cs”
- Create “Runtime\Interaction\InputDeviceWrapper.cs”