Hellon
I attempt to dynamically add markers on a map.
My marker is a prefab with a UISprite component. It has a 120*120 size
I do :
GameObject UIMarker = NGUITools.AddChild(MapComponentPanel, markerPrefab);
UIMarker.GetComponent<UISprite>().SetAnchor(markerDummy.transform);
At runtime the sprite size is reseted to 2*2.
What is the right way to add a child and to anchor it while keeping the size of the prefab ?