Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Isamson on January 20, 2014, 04:32:55 PM

Title: UITable within UITable
Post by: Isamson on January 20, 2014, 04:32:55 PM
Hi Guys,

I'm attempting something I'm not sure is supported and am experiencing some problems with. I'm attempting to place 2 UITable(child-table) within a main UITable. Here is how it works:

1. I start my scene with both child-table being empty.
2. I add elements to the bottom-most child-table and reposition that table with success.
3. At a click of a button I add elements to the upper-most child-table. I reposition but this time, all the elements stay bunched up over each other.

The only way to prevent them from overlapping is by putting a big offset, which comes down to using a UIGrid.

Any idea how to fix this? Is this even supported?

Title: Re: UITable within UITable
Post by: drawmaster77 on January 20, 2014, 07:16:56 PM
I tried something similar but with UIGrid. I also had to add offset and it first it seemed like working, then I added more elements and it broke. Honestly I think its better to not nest these elements and find easier solution, too many problems in the long run!
Title: Re: UITable within UITable
Post by: ArenMook on January 21, 2014, 01:15:33 AM
No, nesting of position-modifying scripts is not supported at the moment.
Title: Re: UITable within UITable
Post by: Isamson on January 21, 2014, 09:00:41 AM
Good to know, I'll work around this issue some other way. Any plans on supporting this new feature?
Title: Re: UITable within UITable
Post by: ArenMook on January 22, 2014, 05:25:04 AM
I can't give you any specifics as it's not on my list of things to change in the near future.