I had buttons in a table, destroyed them, and added some more buttons to the table, repositioned the table.
And the new buttons do not start from the start of the table, but positioned as if continuing from the destroyed buttons.
I have read here that the repositioning waits until lateupdate?
Does that have anything to do with this problem?
It seems some other way round.
It is done as follows;
CloseSelect(); //in this function destroys the old buttons.
DrawChange(); //in this function draws the new buttons and repositions.
And seen as I said.
What am I doing?
NGUITool.Destroy
was the function I was supposed to use. Instead of ordinary Destroy.