Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: schellenberghq on August 23, 2013, 09:39:06 AM

Title: NGUI stray UI elements
Post by: schellenberghq on August 23, 2013, 09:39:06 AM
My team is having this strange issue where a panel is displayed, but when it is turned off, some of the UI elements that don't actually exist in the hierarchy stay in the scene. We found that they could be Force Deleted from the Game Object menu, but that doesn't help during runtime.

I've attached an image of the issue.

Any ideas on how to prevent this from happening?

Thanks,

-Jacob S.

Title: Re: NGUI stray UI elements
Post by: ArenMook on August 23, 2013, 11:00:25 AM
Caused by not following upgrading instructions from the readme file.

Restart your Unity.
Title: Re: NGUI stray UI elements
Post by: schellenberghq on August 23, 2013, 11:14:04 AM
I appreciate the quick feedback.

NGUI was properly imported, even still I just reimported it following the exact instructions.

When this glitch occurs, restarting Unity does resolve the issue, but only until I press Play again and the issue comes right back.
Title: Re: NGUI stray UI elements
Post by: ArenMook on August 23, 2013, 12:40:07 PM
What version of Unity and NGUI? How do you disable your panels? Did you change NGUI?
Title: Re: NGUI stray UI elements
Post by: schellenberghq on August 23, 2013, 02:11:20 PM
Latest version of Unity 4.2, Pulling latest NGUI from bit repository. Haven't changed NGUI code. The objects are 6 radio connected check boxes, so upon pressing play all but one disable.
Title: Re: NGUI stray UI elements
Post by: ArenMook on August 23, 2013, 02:16:22 PM
Checkboxes don't disable. They may hide the checkmark, but they don't disable anything. What do checkboxes have to do with panels?
Title: Re: NGUI stray UI elements
Post by: schellenberghq on August 23, 2013, 02:30:01 PM
I disable the panel that has the check boxes and re enable a different panel, for switching windows. But my point is, its the act of disabling the panel that causes the problem. Should I not be disabling the panel?
Title: Re: NGUI stray UI elements
Post by: ArenMook on August 23, 2013, 02:52:21 PM
The panel or the panel's game object? I don't ever see a reason to disable the panel component. I enable/disable panel game objects everywhere, including NGUI's menu examples and everything works as expected.
Title: Re: NGUI stray UI elements
Post by: schellenberghq on August 23, 2013, 03:15:25 PM
The panels GameObject.