Why is IsPointerOverGameObject giving inconsistent results?

I have been having an issue in which EventSystem.IsPointerOverGameObject() sometimes returns true even when no object appears to be at the point where I clicked.

  1. Has anyone else experienced this?
  2. Is there at least a way to determine which UI element is being detected? I can detect the current object that was clicked, but not which UI element has the mouse over it.

Finally found the answer to my issue. I had another UI object with a Canvas Group component, and alpha was set to 0. This made the UI object invisible to us, but still able to stop clicks from getting to their intended target. (Setting the color of the UI’s sprite to have an alpha of 0 would have had the same effect.)

In short… my bad.