Hi, my project was working fine, i don't *think* i changed anything, but have suddenly started getting a few of these errors at runtime:
ms_IDToPointer->find (obj->GetInstanceID ()) == ms_IDToPointer->end ()
followed by:
NullReferenceException
UnityEngine.Material..ctor (UnityEngine.Shader shader)
UIDrawCall.CreateMaterial () (at Assets/NGUI/Scripts/Internal/UIDrawCall.cs:329)
UIDrawCall.RebuildMaterial () (at Assets/NGUI/Scripts/Internal/UIDrawCall.cs:345)
UIDrawCall.UpdateMaterials () (at Assets/NGUI/Scripts/Internal/UIDrawCall.cs:365)
UIDrawCall.UpdateGeometry (Int32 widgetCount) (at Assets/NGUI/Scripts/Internal/UIDrawCall.cs:502)
UIPanel.FillAllDrawCalls () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1343)
UIPanel.UpdateSelf () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1227)
UIPanel.LateUpdate () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1181)
This is with ngui 3.7.5 and unity 4.5.5f1
It seems to be something to do with my UITextures and UILabels having material set to 'none'? but this hasn't caused any problems before.
I'm not sure how to start debugging this. It seems to happen with all scenes with ngui in. I tried reimporting all assets, and also deleting and reimporting ngui.
Thanks for any pointers.