Hello there!
First of all, NGUI is a fantastic package. I am just getting started with it but it saved me a lot of time already and is worth every dollar.
I ran into a bit of a problem though and would like to get some feedback on the issue.
I have relatively normal setup with a UISprite (UI Root(2D)/Camera/Anchor/Panel/Sensor_1), with "Sensor_1" being a sprite I would like to move on the screen depending on mouse/touch input. So far so good, but I somehow can't sort the coordinates out. I have a valid position for the mouse/finger movement in proper screen coordinates (0,0 for bottom left,1280, 720 for top right, etc.) but I have failed to set the sprite to the according position so far.
I use
Sensor1.GetComponent<UISprite>().transform.localPosition
to get the screen position of the sprite, but I what I get back is the position relative to the center of the panel my sprite is on. What I would need however is coordinates which match the screen coordinates. Example: My sprite is in the center of the screen at 1280*720 and I get back (0,0,0) as a position instead of (640,360,0) as I would expect. I am not sure what the right approach at this point would be.
While I would prefer a non-hacky solution that doesn't require manually translating the coordinates every time, any suggestions are appreciated
