1
NGUI 3 Support / Re: UITable/UIScrollView Adjust position
« on: November 26, 2013, 11:53:43 PM »
Table.Reposition();
Reposition all the items in the UITable.
If you call Table.Reposition() at the Start, all the items starts somewhere near the centre, then it means your UITable placed at that position and everything will be placed there. Please make sure the UITable is placed at the Top Left at first.
If that doesn't work, you can call the UIDraggablePanel.repositionClipping to reClipping the clipping range.
or
call the scrollbar, to set the value to 0.
plus Destroy doesn't work right the way, please try DestroyImmediate. If you do a count at your script, you may get more items in the Table than it looks.
Reposition all the items in the UITable.
If you call Table.Reposition() at the Start, all the items starts somewhere near the centre, then it means your UITable placed at that position and everything will be placed there. Please make sure the UITable is placed at the Top Left at first.
If that doesn't work, you can call the UIDraggablePanel.repositionClipping to reClipping the clipping range.
or
call the scrollbar, to set the value to 0.
plus Destroy doesn't work right the way, please try DestroyImmediate. If you do a count at your script, you may get more items in the Table than it looks.