Author Topic: 2.70: panel auto added  (Read 1815 times)

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
2.70: panel auto added
« on: September 27, 2013, 07:19:28 PM »
UIPanel is added automatically
see it in glorious 2D https://www.youtube.com/watch?v=g-hSx1o54is

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2.70: panel auto added
« Reply #1 on: September 27, 2013, 08:41:10 PM »
How is that a bug? In order to draw something, there must be a panel present. If there isn't one, NGUI adds one for you.

If you don't want this, and still save it as a prefab, instantiate this prefab as a child of a panel -- preferably within your UI hierarchy.

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
Re: 2.70: panel auto added
« Reply #2 on: September 30, 2013, 06:47:34 PM »
I see how it's changed in 2.7, it's ok to have this requirement but it shouldn't add a panel because instead of preventing mistakes it introduces mistakes or enforces a workflow like the one you outline.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2.70: panel auto added
« Reply #3 on: September 30, 2013, 06:49:28 PM »
If I didn't, then I'd be getting posts such as "why is nothing showing!?!?!" from people who don't realize that panels are needed.

Lesser evil.