Hello. I randomly run into a bug after switching scenes. And when it occurs - nothing's rendering in bugged UIPanel.
After a little investigation I find out that it's happening because one of the UIPanels receives UIPanel.LateUpdate() after it's been destroyed.
MissingReferenceException: The object of type 'UIPanel' has been destroyed but you are still trying to access it.
Your script should either check
if it
is null or you should not destroy the
object. UnityEngine.Component.get_transform ()
UIRect.get_cachedTransform () (at Assets/NGUI/Scripts/Internal/UIRect.cs:198)
UIPanel.UpdateTransformMatrix () (at Assets/NGUI/Scripts/UI/UIPanel.cs:982)
UIPanel.UpdateSelf () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1183)
UIPanel.LateUpdate () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1144)