Hello!
In my project, UI is controlled by Gaze or by pressing trigger at controller (like xbox) or keyboard button.
I can’t combine the New Input System with XR Interaction.
Can anyone help or give an example. When we look at the UI element with the camera rig, and then press the button to interact with UI. I do not need to use VR-controllers.
Im try to added XR Ray Interactor and XR Controller components to the camera. when hovering the UI - it is activated, but I can not find the parameter for linking the keyboard (or xbox controller) to interact.
I’d be interested to know if anyone found a working solution to the above. Google’s APK has been deprecated, the Asset store has a free Gaze UI which works as intended during edit works, fails to actually work in final build. I’m using Unity 2020.3 for a VR project requiring one button press, ideally gaze activated. So far looking for answers has been zilch.
I found out how to do it. You can use above interactor and use graphics raycaster to cast ray in the middle of the screen and check if it hit something.