I have just bought NGUI and began to explore it. it is amazing so far following the tutorial on youtube! thanks a lot for creating such an amazing library!
I have a question on dynamically adding items to the grid and have the grid arrange the item dynamically. I use playmaker, but I am also familiar with c sharp/javascript, so either solutions would be fine.
I have a grid inside scroll view with 3 items which I can scroll vertically. Then I create a button, and when the button is clicked, I want to add a new item into the grid. I learn that (from youtube and this post) to ask the grid to automatically arrange the items, I right click UIGrid script and select execute. But how do I do it when the game is running?
thanks again!
[edit] silly me, as soon as I created this post, I found a solution , which is to call Reposition method...however the newly created items in the grid are not clipped by the scroll view?? also the new items are not draggable despite having UIDragDropItem script. any clue why it is the case?
[edit] I solved it again......now another problem....I have a vertical scroll bar, when the items are added to the grid, the scroll bar display is not updated...how do I resolve it? thanks!