Event.current.mousePosition only gives the position of the mouse upon the last event, which is not updated frequently enough. Because the code is in an Editor Window, I can’t do raycasting, as people have told me to try.
A way to continuously trigger Events or trigger Events when the mouse moves would be great.
Thanks in advance!
1 Like
I have had this same problem. Hopefully someone here knows how to do this. I have been searching these forums for hours looking for something useful regarding getting the mouse position without an event. Has anyone here achieved this? thanks.
1 Like
Call the Repaint(); function in the OnGUI(). Works like a miracle! :PPP
2 Likes