Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Chris_E on May 08, 2012, 01:20:31 PM

Title: Nested Widgets?
Post by: Chris_E on May 08, 2012, 01:20:31 PM
Why were my parents changed on all my widgets?

A bunch of my movement scripts no longer work because of this parenting change.

Is there a way to disable this?
Title: Re: Nested Widgets?
Post by: ArenMook on May 08, 2012, 01:24:06 PM
I take it you haven't updated in a while.

Widgets should never be nested. Doing so creates obscure issues. Simply re-parent them to have a common parent with a scale of (1, 1, 1).
Title: Re: Nested Widgets?
Post by: Chris_E on May 08, 2012, 01:27:20 PM
Is there any way to temporarily disable this?  I haven't updated in a while.  Also, because it's unparenting them automatically it's making it difficult to tell what was there before the change.
Title: Re: Nested Widgets?
Post by: ArenMook on May 08, 2012, 01:29:53 PM
Look in UIPanel.AddWidget
Title: Re: Nested Widgets?
Post by: Chris_E on May 08, 2012, 01:36:14 PM
Thanks!

That did it, and will make it much easier to fix tomorrow!

Also, thank you so much for the fast responses.  nGUI is a great product.  The two programmers I work with and I are all picking it up.