I'm actually adding contents dynamically using
NGUITools.AddChild (list.gameObject, galleryItem);
list.Reposition ();
However problem is as galleryitem is using UIDragScrollView which require reference to scroll vew (in my case on runtime)
So i have this code attached to galleryitem
void Start () {
GetComponent<UIDragScrollView> ().scrollView = GameObject.Find("Scroll View").GetComponent<UIScrollView>();
}
It doesnt look efficient, as ill b adding 100s of items on runtime
What'd you suggest?
Thanks