- Home /
Question by
curly-brace · Mar 09, 2017 at 08:19 AM ·
uiraycastmouse
Make screen center behave as mouse pointer when cursor is locked?
I've altered GraphicRaycaster to use screen center as origin of the raycasts, so now UI buttons on world canvas can be pressed.
But i can't make them react on mouse over events. UI.Selectable just does not get any events until i press mouse button and then all of the 4 events are fired together.
GraphicRaycaster does not seem to discard any events, where should i look next?
Comment
in cases where I fiddle with the unity UI I usually take a look at Unity's bitbucket/UI.
there one can dig through their code to see how they've done stuff
Your answer
![](https://koobas.hobune.stream/wayback/20220612112758im_/https://answers.unity.com/themes/thub/images/avi.jpg)