Author Topic: Nested Widgets?  (Read 3201 times)

Chris_E

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 37
    • View Profile
Nested Widgets?
« 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?

ArenMook

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

Chris_E

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 37
    • View Profile
Re: Nested Widgets?
« Reply #2 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Nested Widgets?
« Reply #3 on: May 08, 2012, 01:29:53 PM »
Look in UIPanel.AddWidget

Chris_E

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 37
    • View Profile
Re: Nested Widgets?
« Reply #4 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.