I have a UI.Image with a Collider2D so I can click the image and fire an event.
What I need to return is the mouse position relative to the box collider or the UI.image (they share the same xy space). So if I click on that UI image, I will get the pixel coordinates relative to the image and positive from Top Left (0,0).
Can anyone help me… I’ve been searching for days and trying all kinds of different ways, but nothing works. I want to click on the green map and return the x y of that click relative to the object.