- Home /
VR UI interaction with ingame hands
So I just got into VR (Vive) development with Unity after using Unity for a while and I'm trying to find a way to have my fingertips interact with a world space UI, here's a quick example: https://www.youtube.com/watch?v=R_zYm5ZU02M
I want the finger to trigger the "hover" state when it gets within proximity of an UI element, the "mouse down" state when it touches the element and the "mouse up" state when it stops touching the element.
How should I go about achieving this?
Thank you very much for the answers/hints/pointers!
Answer by maikuthe1 · Jul 15, 2017 at 01:01 AM
Just thought of a possible answer, haven't tested it yet though:
I can attach colliders to the UI elements since they're in world space and attach a collider to the tip of the finger and I can determine which state to pass to the actual button element via a script.
Edit: Works!
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Renderer on object disabled after level reload 1 Answer
Unity Ads Quesition 0 Answers