Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Mhason on September 02, 2012, 01:04:15 PM

Title: NGUI Chat example question - When disabling and re-enabling it breaks
Post by: Mhason on September 02, 2012, 01:04:15 PM
Hi,

Maybe you can help me out here. I am trying to use the Chat text list but when I disable the parent object and the children and then re-enable it the functionality breaks. I was able to reproduce this by using the standard example as well, it looks like the text label is not being added when object is re-enabled.

I should add - I am re-enabling by using the button animation script that allows you to enable the object when it is called and then disable it again afterwards.  Simply disabling and re-enabling the object in the editor does not do this error and works fine. If I do not disable the text list component it seems to work ok though.

Any advice?   

Thank you for the help and for a great product!

Mhason
Title: Re: NGUI Chat example question - When disabling and re-enabling it breaks
Post by: ArenMook on September 02, 2012, 04:08:58 PM
Are you using SetActiveRecursively? It re-activates children before parents, which is quite broken.

Use NGUITools.SetActive instead.