Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: ENAY on September 06, 2012, 05:13:33 AM

Title: Unity freeze with NGUITools Refresh
Post by: ENAY on September 06, 2012, 05:13:33 AM
My program starting freezing, Unity completely froze and made it so I had to CTRL+ALT+DEL.
Finally tracked the fault down to

NGUITools.Broadcast("Refresh");

If I remove this line, my program no longer freezes. I am not sure exactly what is happening but I can only assume that maybe I have too many children in my UnityObject?
Title: Re: Unity freeze with NGUITools Refresh
Post by: ArenMook on September 06, 2012, 07:02:45 AM
Do you have some custom Refresh function somewhere on one of your scripts? Unity freezing usually implies that it got into an endless loop, so one Refresh function would call another kind of deal.
Title: Re: Unity freeze with NGUITools Refresh
Post by: ENAY on September 06, 2012, 08:50:30 AM
I am not sure, perhaps. What scared me a bit is that this occured in some code I wrote last month, and then the freezing suddenly appeared there. Need to do some more investigating first.

Thanks for the answer, ArenMook :)