- Home /
NGUI 3.4.9 error NullReferenceException UnityEngine.Material..ctor (UnityEngine.Shader shader) UIDrawCall.CreateMaterial ()
Editor is showing me NullReferenceException UnityEngine.Material..ctor (UnityEngine.Shader shader) UIDrawCall.CreateMaterial ()
again and again. I am using NGUI 3.4.9 paid version.
If I use
var texture = www.texture;
It shows me error. and if I use
var texture =new Texture2D(1,1); It is working fine.
I need to fetch image from url thats why I am using www
. But if I fetch image from my resources then it is working fine. I was using previous version of NGUI(free) and the code was working impeccably and great. After when I updated my NGUI folder (package) with new one from that moment get this error again and again.
I guess it is not www
kind of thing It is some NGUI rendering bug. But why it is occurring only with www.texture
Please guys help me out of this.
Your answer
Follow this Question
Related Questions
cant get Texture2D.LoadImage() to work 0 Answers
Image is not loading into Texture 0 Answers
the texture appear rubbish 1 Answer
WWW Texture access takes a long time 3 Answers
www.texture memory leak 1 Answer