# Using the Functionality "On Clicked" in VR

**URL:** <https://forums.unrealengine.com/t/using-the-functionality-on-clicked-in-vr/490383>\
**Category:** XR Development\
**Tags:** VR-Vive, unreal-engine, question\
**Created:** [October 29, 2021, 9:25am UTC](https://forums.unrealengine.com/t/using-the-functionality-on-clicked-in-vr/490383 "2021-10-29T09:25:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas.Beisser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nicolas.Beisser](https://forums.unrealengine.com/u/Nicolas.Beisser)\
**Post date:** [October 29, 2021, 9:25am UTC](https://forums.unrealengine.com/t/using-the-functionality-on-clicked-in-vr/490383/1 "2021-10-29T09:25:12Z")

</div>

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
