Author Topic: Table not repositioning properly  (Read 1257 times)

dwjkim

  • Guest
Table not repositioning properly
« 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.
« Last Edit: September 03, 2013, 03:27:51 AM by dwjkim »

dwjkim

  • Guest
Re: Table not repositioning properly
« Reply #1 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.