Sorry if this has been asked/answered in the past I did some searching and I could not find it.
I am trying to make a class that extends UITexture and add some mouse processing to it, but I need to be able to find the position of the mouse event relative to the widget. I.e the upper left of the widget is (0,0) and the lower right of the widget is (transform.localScale.x, transform.localScale.y).
Can you point me in the right direction please?