- Home /
How to send mouse events directly to the canvas in world pos
I'm creating a 3D UI for virtual reality which is essentially a panel that follows your left hand and a cursor in your right hand.
Right now, I have a Vector3 which is the projection of my cursor projection on the UI plane and a "state" which is either hover, clicked or none depending on the height of my cursor relative to my panel. My panel has a canvas in world space attached to it and i'm now struggling to send a signal to inform the canvas of the cursor position or if it's clicked or not. I've completely removed the event system and InputModules as these are to fetch the actual mouse, but there is none in my VR project.
Is there a way to tell my canvas where the cursor is and if the mouse is clicked from code? Thanks in advance for reading me, and for any solution or ideas :)
Your answer
Follow this Question
Related Questions
How can i add a event onclick for a ui button that is child of canvas ? 1 Answer
How do you turn an empty game object into a NavMeshAgent target? 1 Answer
Trigger Sound more than Once 0 Answers
How do you detect if your Oculus camera is In Alignment With a particular Object? 0 Answers
SteamVR Slider won't drag using VR Controller,SteamVR-controller can't drag Slider handle 0 Answers