CustomGetMouseButtonDown

If you need to use the likes of Input.OnMouseButtonDown(0), but when your user clicks on buttons and text fields need it to not shoot whatever happens to be behind the window.... just use this class. It's written so you can simply replace "Input." with "YourGUIClass." and it will just work.

You do, however, need to customize the last function per game - it needs to check each window manually, as there doesn't seem to be an automated way of looping through all the windows.