Hi all, i have a shop functionality with 100+ items , here is my structure
UIScrollView
UIWrapContent
Item
Item
Item
etc.
The problem is that , when i`m clicking on the category button , it displays the items in 2-3 seconds and then when it is loads - the UIWrapContent performance works perfectly.
I`m creating items like this
for (int i = 0; i < dataList.Count; i++) {
GameObject item = NGUITools.AddChild(gameObject, prefab);
}
Question - how can i prevent this heavy items loading and what is the best way to do this?
Maybe the load prefabs partially , when user scrolls horizontally .
Will be glad for you suggestions and useful code snippets as well.
Thanks in advance