cancel
Showing results for 
Search instead for 
Did you mean: 

Using my real finger touch as mouse click.

ped1130
Honored Guest

Hello.

 

I'm developing VR app using unity with Oculus Quest2.

I'm using OVRCameraRig for tracking my bare hand.

 

I want to use finger touch as mouse click to interact with UI(Button, Dropdown etc.)

 

Is there any way to do it?

Please share me if you have one.

Thank you 🙂

1 REPLY 1

spectrexr
Explorer

The best (but more difficult) solution for you to do is to write your own custom input module. Then you need to develop some logic when to trigger press and when to release. Perhaps distance to canvas...

Second solution, which is easier but I wouldn't recommend you doing that, is simply putting colliders on UI elements and a collider on your finger tip and trigger events on collision.