Slider/Buttons not wokring on UI interface

Hello,

I can’t figure out why my XR Ray interactor isn’t working with UI elements in a particular scene. I have them working great in one scene, and have copied all the component values of XR Ray Interactor and XR Controller (Device-Based) over to the controllers in a dif scene. Also all the UI elements are set to interactable and in interactable layer, and interaction layer mask is set to Interactable for both controllers.

Any idea what the source of this problem might be?

Do you have a Tracked Device Graphic Raycaster component on the canvas objects you are trying to interact with?

Hi yes I also have that on the Canvas, and have copied the component values from the Canvas in the scene that works. I did notice something odd though. For some reason the UI elements aren’t showing up in the prefab view, but they show up in the scene which has the prefab in it:

There are no Overrides to update, and all the elements show up while the game is running.

That is an odd issue with the prefab. I’m not sure why it’s hiding the elements. Are you looking at it from the wrong side maybe? Is this the same prefab you used in the original scene that works?

Do you have a different EventSystem in the new scene or the same one? If it is a new scene, I would double-check you have the XRUIInputModule added to handle UI input from XRI.

1 Like

I fixed the problem, thanks to your prompts. I noticed the scenes each had a few different event systems. I consolidated them to 1 for each scene and added the proper components and now it works.

Thanks for your help!

1 Like