Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Rafe on August 05, 2012, 06:09:26 PM

Title: Is there any reason to use a panel for visibility?
Post by: Rafe on August 05, 2012, 06:09:26 PM
Hi,

I noticed SetActive takes a gameobject. Can I just use empty gameobjects for setting branches of my GUI visibility? Is there any reason to to stick to toggling panels?

I think I assumed this would be a good idea because of the Panel Tool (which is awesome by the way, and I will still use it for the big chunks regardless).

Cheers,

- Rafe
Title: Re: Is there any reason to use a panel for visibility?
Post by: ArenMook on August 05, 2012, 06:37:51 PM
Any game object works, and doesn't have to do anything with NGUI. It's SetActiveRecursively equivalent, except that it enables objects in a proper order -- parents before children. SetActiveRecursively enables children before parents, which is bizarre.