Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: dwjkim on September 03, 2013, 02:46:23 AM

Title: Table not repositioning properly
Post by: dwjkim on September 03, 2013, 02:46:23 AM
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.
Title: Re: Table not repositioning properly
Post by: dwjkim on September 03, 2013, 03:28:39 AM
Solved.

But one table is in front of the panel, and the other table is at the back of the panel.

I'll start a new topic on that.