Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Shemamforash on October 14, 2014, 11:35:03 AM

Title: Editor Lag
Post by: Shemamforash on October 14, 2014, 11:35:03 AM
So I've been having some serious issues with lag using NGUI recently. Since upgrading from 3.5.6 to any of the newer versions of NGUI, and with any version of Unity above 4.3.1, I have encountered severe lag in the Unity editor. In game performance is not affected at all, but Unity takes anywhere between 20 seconds and a minute to load up, with a similar lag between clicking on things in inspector and them actually being highlighted. I have tried numerous fixes that ArenMook and other forum members have suggested, but none have been successful. I now believe it is something to do with the way my UI hierarchy and/or UI objects are set up. Is there anything that anyone can think of that would cause a lagging behaviour only in the editor? I know I can always work in the older versions of NGUI and Unity, but I would like to have the option to update my software.

EDIT: I've just noticed my UIRoot has 2000 panels on it. I didn't put them there so where did they come from?
Title: Re: Editor Lag
Post by: ArenMook on October 14, 2014, 03:23:08 PM
2000 panels? No idea. Never heard of that happening before.
Title: Re: Editor Lag
Post by: Shemamforash on October 15, 2014, 11:24:49 AM
Do you have any idea what might be causing it? Is there some way of removing all the panels quickly? I appreciate that there are dozens of people all with different problems but I genuinely can't work on my project until this is fixed...
Title: Re: Editor Lag
Post by: ArenMook on October 16, 2014, 06:28:58 AM
Create a new game object of the same layer as UIRoot, put UIRoot on it, put a UIPanel on it, then move the objects underneath your old root to the new one and delete the old one.
Title: Re: Editor Lag
Post by: Shemamforash on October 19, 2014, 11:15:10 AM
It worked! I'm so happy :D