Trying to create a copy of the object (NGUI) through Instantiate. Debug.Log (copy.transform.localPosition); prominence (-181.0, 230.0, 0.0), although in fact created a sprite to be in (0, 0, 0). What am I doing wrong? NGUI latest version.
private void OnGUI()
{
if (GUI
.Button(new Rect
(10,
10,
100,
50),
"asdad")) {
copy = Instantiate(gameObject) as GameObject;
Debug.Log(copy.transform.localPosition);
}
}