Main window mouse event

is there a way to catch the OnMouseExit and click event of the main standalone game window? I need to catch mouse events e.g. a clink’n’drag that ends outside of the main window.


You can check the mouse position to see if the mouse X/Y is negative, or if X/Y is larger than screen width/height. This will tell you if the mouse is outside of the screen :slight_smile:

It looks like it is currently not possible to get a window ID and pass drag/drop information outside of the unity window. It has been on the ‘wish list’ for a while now. You may be able to find something here

right, but is it possible to obtain the main window id in order to use OnMouseExit callback?