Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: zenmaster on April 13, 2013, 07:50:02 PM
-
Hi All,
I have a Button with a background Sprite of a circular gauge.
OnClick() is getting called when I click on the button which i expect.
How do I get the clicked position on Sprite?
I was expecting all the event handlers to be passed an event object?
Thanks
-
I think you can use
to get a RaycastHit inside the OnClick.
You can also use
to get a "MouseOrTouch" instance that has a bunch of info. (see in the top of UICamera for definition).
-
Thanks for info.
lastTouchPosition has some coordinates that I still need to transform?
UICamera.lastHit has lots of data.