Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: laurentl on September 27, 2013, 07:19:28 PM

Title: 2.70: panel auto added
Post by: laurentl 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
Title: Re: 2.70: panel auto added
Post by: ArenMook 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.
Title: Re: 2.70: panel auto added
Post by: laurentl 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.
Title: Re: 2.70: panel auto added
Post by: ArenMook 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.