ValveSoftware / steamvr_unity_plugin

SteamVR Unity Plugin - Documentation at: https://valvesoftware.github.io/steamvr_unity_plugin/
BSD 3-Clause "New" or "Revised" License
1.04k stars 259 forks source link

HMD is no longer recognized in Unity 2022 #1076

Open erikbaender opened 1 year ago

erikbaender commented 1 year ago

I know that this is and old plugin nobody wants to maintain anymore, but since there is still no way get hand tracking data from the Index controllers without it I think it's pretty crucial to keep support for the Index alive.

There are no errors to share, it's as simple as the HMD just not showing up as a rendering target for cameras anymore. The controllers still work fine.

zite commented 1 year ago

What version of unity are you using? Are you saying VR doesn't work or there's a missing field in a drop down? Do you see this behavior on the example scenes?

JackAlta commented 1 year ago

Hi @zite

I am getting the same issue. We are upgrading a live project from unity 2020 to Unity 2022.2.14f

As @ebaender mentioned, it appears that the steam input and display are no longer recognized by unity.

The easiest way to repro is to try initialize the loader in the above version, and then OpenVRLoader line 189 calls

CreateSubsystem<XRDisplaySubsystemDescriptor, XRDisplaySubsystem>(s_DisplaySubsystemDescriptors, "OpenVR Display");

This goes to XRLoaderHelpers which calls

SubsystemManager.GetSubsystemDescriptors<TDescriptor>(descriptors);

This returns the options (in my case, oculus, openxr, and pico). The options do not include openvr and so the loader fails to initialize.

image

zite commented 1 year ago

Hi, sorry for the delay in response. Is this still a problem? Did the openvr option in xr management get unchecked during the upgrade?