There a way to check if the mouse is over a GUI.Box?[SOLVED]

Is there a way to check if the mouse is over a GUI.Box or GUI.Window ? I mean without checking both the mouse position using Event and checking the box/window’s position?

Probably the easiest way is to use the rect.Contains with the same Rect you use for the GUI.Box, if you look at the script reference for Contains it called with the mouse position, something like…

rect.Contains(Input.mousePosition);

Thanks thats what I did and it worked nicely.