- Home /
Question by
curly-brace · Mar 08, 2017 at 02:13 PM ·
uicanvaseventeventsystem
Broadcast mouse event on Canvas
I'm trying to use world canvas with locked cursor. But how to get events there? I've added a script to my camera that raycasts every frame from center of the screen and looks for my "virtual screen" objects. It even places a cursor on that screen where camera center is looking.
So i have current canvas coordinates of the "mouse" that is represented by the center of screen.
But how do I broadcast mouse events like DOWN, UP, MOVE to all canvas children so that buttons and sliders operate properly?
Comment