Author Topic: Tables not Updating after reparenting Items.  (Read 9899 times)

Budde88

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Tables not Updating after reparenting Items.
« on: April 28, 2017, 08:53:25 AM »
I have two separate Tables (Table 1 & Table 2)

Table 1 - Has Items, and those items expand with the Tween scale action.
             The table updates and makes room for the expanding objects within the table.

BUT... When an Item from Table 1 is re-parented to Table 2 1 main issue occurs.

Table 2 - If I have moved 2 items for example from Table 1 into Table 2 by re-parenting the items,
             The tables no longer updates when I expand the items, instead they just overlap why?

I do not wish to use the "Add Child" Action as I am not working with Prefabs in this case.

How can I get the items in Table 2 to update when expanding?

THANKS

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tables not Updating after reparenting Items.
« Reply #1 on: April 28, 2017, 10:21:02 AM »
You can't nest tables together. NGUI isn't designed for that kind of behaviour.

Budde88

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: Tables not Updating after reparenting Items.
« Reply #2 on: April 28, 2017, 10:30:41 AM »
Hey Aren, The Tables aren't nested.
They are completely separate Tables.
I have a meeting on Monday with a potential investor and I need this prototype
up and running by then. if you could help me out that would be really great.

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tables not Updating after reparenting Items.
« Reply #3 on: April 28, 2017, 10:38:32 AM »
Did you notify NGUI that you changed the parent? NGUITools.MarkParentAsChanged()