Author Topic: UITable within UITable  (Read 7153 times)

Isamson

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 52
    • View Profile
UITable within UITable
« 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?

Unity 4.5.3f
NGUI 3.7.0

drawmaster77

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Re: UITable within UITable
« Reply #1 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!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITable within UITable
« Reply #2 on: January 21, 2014, 01:15:33 AM »
No, nesting of position-modifying scripts is not supported at the moment.

Isamson

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 52
    • View Profile
Re: UITable within UITable
« Reply #3 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?
Unity 4.5.3f
NGUI 3.7.0

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITable within UITable
« Reply #4 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.