steamvr_unity_plugin icon indicating copy to clipboard operation
steamvr_unity_plugin copied to clipboard

Unity6.1 SteamVR CANT WORK

Open WillLongg opened this issue 5 months ago • 6 comments

When I build a project using Unity 6.1 with SteamVR Plugin 2.8.0, using OpenVR Loader for VR loading, the SteamVR plugin initializes normally and connects to the headset, but the VR camera in the scene does not work properly; the position and rotation do not sync with the visuals. SteamVR connects to the headset normally and displays the visuals. What could be the reason for this? Is it because the Unity version is too high? I have verified it with both Unity 2021 and 2022, and this issue did not occur. Image

WillLongg avatar Jul 26 '25 09:07 WillLongg

Identical issue. Updated to Unity6.2, SteamVR 2.12.14, SteamVR Plugin 2.8.0 (sdk 2.0.10). Windows11, NVidia RTX 2060, Vive Index HMD. Putting on headset I see a "next up" window, which never progresses to the gamer.

  • Tested in editor.
  • Tested from a build.

Will try previous versions of Unity as suggested.

UPDATE: Unity 2022.3.62f2 works for me.

However... it seems to me that supporting the current version of Unity should be the highest priority of this project.

I'm happy to share any system reports or logs needed to help diagnose the issue.

Also, using Unity2022 is for me a temporary fix, since I am upgrading from Unity 2019, which was the last version supporting Enlighten until Unity6.

GabrielHare avatar Oct 11 '25 07:10 GabrielHare

bump... @keithbradner if you can give me a few pointers to get all the source code I need to start debugging I would be delighted to take a stab at fixing this.

GabrielHare avatar Oct 17 '25 07:10 GabrielHare

@keithbradner Linking to what is likely a related issue: https://github.com/ValveSoftware/unity-xr-plugin/issues/136

GabrielHare avatar Oct 28 '25 19:10 GabrielHare

Hi folks, sorry for the delay. We should have a fix for this on the most recent beta: https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.8.5b

Turns out this was a DirectX12 issue. An important note: Unity currently has a bug where the Built-in Render Pipeline doesn't work with single pass. You can either switch to multipass, switch render pipelines to URP, or change your graphics API to DirectX11.

keithbradner avatar Oct 29 '25 21:10 keithbradner

@keithbradner

Thanks for the update!

I’m currently developing a PCVR app for SteamVR using Unity’s built-in OpenXR plugin (not the SteamVR Unity Plugin). I’m also experiencing the same issue — VR doesn’t start when using DX12, but everything works fine under DX11.

Just to clarify: Should I wait for a SteamVR update to fix this on the runtime side, or is this something that Unity needs to fix in their OpenXR plugin instead?

Thanks again for your help and for keeping us updated!

MaZhengKe avatar Nov 05 '25 06:11 MaZhengKe

It depends on your scenario.

Built-In Render Pipeline (Standard Shaders) options:

  • Switch to multipass in OpenVR Settings
  • Switch to URP
  • Switch to DX11
  • These are Unity bugs. You'll need to ask Unity to fix them. Their OpenXR plugin also fails under these scenarios.

Universal Render Pipeline / Scriptable Render Pipeline:

  • Should just work for all scenarios now
  • This is broken in the release version of this plugin, but works in the beta I linked above.

keithbradner avatar Nov 05 '25 17:11 keithbradner

I am not sure whether my issue is related, but I am on Linux(Arch), and as soon as I click play, it just crashes the editor, build doesn't even start. If I switch from OpenGL to Vulkan, it's not an instant crash, it sort of loads the scene and then crashes. I can't test the vulkan build as it fails to build.

Vulkan Build Errors
Shader error in 'Hidden/CoreSRP/CoreCopy': Single-pass instancing is not supported on this platform (see UNITY_TEXTURE2D_X_ARRAY_SUPPORTED). at /home/nn/Data/Projects/Unity/Kairostasis/Kairostasis/Library/PackageCache/com.unity.render-pipelines.core@0e403f33d304/ShaderLibrary/TextureXR.hlsl(15)

Compiling Subshader: 0, Pass: Copy, Vertex program with STEREO_INSTANCING_ON
Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_PLATFORM_SUPPORTS_DEPTH_FETCH UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
Disabled keywords: DISABLE_TEXTURE2D_X_ARRAY SHADER_API_GLES30 SHADER_API_GLES31 SHADER_API_GLES32 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING
Shader error in 'Hidden/Universal/CoreBlitColorAndDepth': Single-pass instancing is not supported on this platform (see UNITY_TEXTURE2D_X_ARRAY_SUPPORTED). at /home/nn/Data/Projects/Unity/Kairostasis/Kairostasis/Library/PackageCache/com.unity.render-pipelines.core@0e403f33d304/ShaderLibrary/TextureXR.hlsl(15)

Compiling Subshader: 0, Pass: ColorOnly, Vertex program with STEREO_INSTANCING_ON _MSAA_2X
Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_PLATFORM_SUPPORTS_DEPTH_FETCH UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
Disabled keywords: SHADER_API_GLES30 SHADER_API_GLES31 SHADER_API_GLES32 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING _MSAA_4X _MSAA_8X

Vulkan Editor Crash Log OpenGL Editor Crash Log

nnra6864 avatar Dec 16 '25 13:12 nnra6864