Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Budde88 on April 28, 2017, 08:53:25 AM

Title: Tables not Updating after reparenting Items.
Post by: Budde88 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
Title: Re: Tables not Updating after reparenting Items.
Post by: ArenMook on April 28, 2017, 10:21:02 AM
You can't nest tables together. NGUI isn't designed for that kind of behaviour.
Title: Re: Tables not Updating after reparenting Items.
Post by: Budde88 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
Title: Re: Tables not Updating after reparenting Items.
Post by: ArenMook on April 28, 2017, 10:38:32 AM
Did you notify NGUI that you changed the parent? NGUITools.MarkParentAsChanged()