I have this on a widgets OnPress
var slotPosition = transform.localPosition.ToString ();
var mousePosition = Input.mousePosition.ToString ();
Debug.Log ("Mouse: " + mousePosition);
Debug.Log ("Slot: " + slotPosition);
The output is:
Mouse: (235.0, 636.0, 0.0)
Slot: (0.1, 0.7, 0.0)
I dont understand the difference between the vectors. How can i position the localPosition of the widget to where mouse is?
And even more, where can i read up on how Ngui/Unity is arranged so i better can understand?