1
NGUI 3 Support / All NGUI objects isn't rendering after scene switching
« on: September 07, 2014, 10:19:33 PM »
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.
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.
- 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)