Hey guys,
I found a problem with UICamera using Unity2D event types. I just want to make sure I fixed it right...
The bug is that Physics2D.OverlapPoint(pos, mask) is using a Viewport coordinates instead of world coordinates that OverlapPoint requires.
Here's the fix:
else if (cam.eventType == EventType.Unity2D)
{
Added this --> var worldPos = currentCamera.ViewportToWorldPoint(pos);
Collider2D c2d = Physics2D.OverlapPoint(worldPos, mask);
That fixed it.