Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: laurentl on April 06, 2013, 04:29:10 AM

Title: [solved]NGUI way of hiding a widget
Post by: laurentl on April 06, 2013, 04:29:10 AM
I currently use .SetActive(bool) to hide/show buttons, progress bars and soon, draggable contents.

Is there a better way to do that in NGUI ?
Title: Re: NGUI way of hiding a widget
Post by: ArenMook on April 06, 2013, 11:36:59 AM
That's just fine.
Title: Re: NGUI way of hiding a widget
Post by: Nicki on April 06, 2013, 12:56:18 PM
SetActive is just fine, either Unity built in or NGUITools.

If you have other scripts on the widget that you for whatever reason want to keep active, you can disable the widget component instead - that will also hide it, but leave colliders and other scripts active.