Hello guys!
Can anyone tell me how to solve if the mouse touches a GUIElement?!
I tried it with the following script but it goes:
var GuiFire : GUIElement;
function Update ()
{
var MouseTouch : Ray = Camera.main.ScreenPointToRay (Input.mousePosition);
if(GuiFire.HitTest (MouseTouch))
{
Debug.Log("Yessss!!!");
}
}