XR Interaction & New Input System - Gaze interaction

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.

It’s cardboard timer based interaction, but have a look here.

Thx, good example. it’s close to what i need. hope, I can link the controller click and then where I look

hey @Korveen did you ever figure it out? I’m trying to do something similar with UI

I had to look for a custom Gaze UI solution and redo some things.

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.