I'm currently getting a null ref exception in UI panel when I use NGUI textures on a an item.
I'm instantiating a bunch of objects that contain a couple of labels and sprites + the ngui textures. They are being instantiated in a UIGrid.
The editor spams the below command stack a few times and then does not render my objects.
I don't know what I'm doing to kill NGUI in this circumstance as I have used the same prefabs in other UI's
NullReferenceException
UnityEngine.Material..ctor (UnityEngine.Shader shader) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/ShaderBindings.cs:149)
...
UIPanel.LateUpdate () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1170)