Using the Functionality "On Clicked" in VR

Hi,
I’m working on an architactual project. I use the HTV Vive pro in a CollabViewer Template. I tried to create a kind of a switch, witch can be used in the Desctop Mode and the VR-Mode.
The function “on Clicked” dosen’t work in VR. Now I compare the hit components to enable/disable (e.g. point light). That works fine till I pack it to a Windows project.
Then in the Desctop Mode the “on clicked” functunality is still there, but in VR it doesn’t work any longer.
I tried to find the mistake and displayed the name of the hit compnent, that is still working, but my (e.g. point light) not.

Any ideas?

Thanks