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?