I’ve done the research and everyone says: Perform an “if” check on this function
if(UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject())
{
//UI is selected
return;
}
My issue is that I will have near a hundred components with behavior files calling OnMouseDown, OnMouseDrag, and OnMouseUp. Do I really have to perform this if check at the beginning of every Mouse function call on Non-UI components or is there a much simpler way that I am missing?