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 () (at C:/BuildAgent/work/d3d49558e4d408f4/artifacts/EditorGenerated/UnityEngineComponent.cs:19)
UIRect.get_cachedTransform () (at Assets/NGUI/Scripts/Internal/UIRect.cs:185)
UIPanel.UpdateTransformMatrix () (at Assets/NGUI/Scripts/UI/UIPanel.cs:934)
UIPanel.UpdateSelf () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1132)
UIPanel.LateUpdate () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1093)
So, after upgrading from an old old version of NGUI, we now get this bug after running the game for a while in the editor. It triggers when we hit the play button to stop the game.
We've upgraded to the newest version of NGUI on Unity 4.3.4f1. Has anyone seen anything like it? Any solutions, hints anything?
After it's broken, then it fires that LogError every time you mess with just about anything - turn off a uipanel or back on, change a widget, resize the scene view.
It may be something we're doing as one of the hacks to get everything to run smoothly in the old version of NGUI, but that's basically limited to calling Refresh on UIPanels when they're activated, and we've tried to comment that out with the same result.
It's really hard to make a test case, because an empty project doesn't do this, which obviously leads me to think we're doing
something wrong.
