Is there a simple way to detect if user clicked a GUI item?
I have a 3D world which on click casts a ray, if nothing is detected then most of the GUI is made invisible. Currently, with something selected, I click a GUI item, but the raycast still fires and the GUI hides without triggering.
I could monitor the mouse_entered / mouse_exited events and control that way, however there's quite a few controls, so the easiest way would be to just monitor the container. Yet I'm wondering if there is some method I've not discovered yet to either trigger the GUI event first or to check the visible controls?
Thanks