if(EventSystem.current.IsPointerOverGameobject())

{

 

}