#XR Interactive Toolkit rendering world space UI on one eye only

1 messages · Page 1 of 1 (latest)

high glade
#

I created UI elements for my VR project that are being rendered to my left eye camera only. They are not to be seen on my right eye camera, even though everything else works fine. I cannot find anything on this.

I'm using unity (2022.3LTS) with VR Interaction Toolkit 2.6.3.

I added UI components just clicking UI > Slider in project window.

I changed the resulting canvas to Render Mode "World Space" and Event Camera to my "Main Camera", being my XR Rig Camera, as can be seen in the screenshot. The layer is set to UI.

In my Project Settings I use Render Mode "Single Pass Instanced \ Multi-view".

My Setup is a windows PC with an Occulus Quest 2 being connected via link.
I've got this issue with the sample scene already, where the rays from the controllers are visible for one eye but not for the other.

I also tried adding Tracked Device Graphic Raycaster and tried several settings and creating the UI elements with XR > UI Canvas.

verbal crag
#

If you're using any custom shaders they need to support Single Pass Instanced rendering. https://docs.unity3d.com/Manual/SinglePassInstancing.html

For default UI shaders that should already work, but after a quick google it does seem like a fairly common issue. I did come across this thread which mentions deleting some library folders & letting unity rebuild them fixes it, might be worth a try : https://discussions.unity.com/t/ui-canvas-only-visible-in-one-eye-w-hdrp-single-pass-instancing/791070/7