- Home /
www download strange...help
i am trying to download image from the internet and make it a texture. what is wrong with this code? it should be working. when i press a button it should download the texture. debugData shows correct path to the image. player is at the same server so that is correct too, also showImages does not ever get to be true? any ideas about this,it's confusing! here is the code:
if(GUI.Button(Rect(x,y,width,height),imageList[i],gStyle)){
debugData=imageListFullPath[i];
var www : WWW = new WWW(imageListFullPath[i]);
yield www;
if (www.error != null)
debugData=www.error;
if(www.isDone){
www.LoadImageIntoTexture(tImages);
www.Dispose();
www = null;
}
showImages=true;
}
Comment
Your answer
Follow this Question
Related Questions
WWW.texture provides a :"?" texture... 1 Answer
WWW class downloading image doesn't work in Web Player? 1 Answer
How to load interlaced streamed image into a texture? 0 Answers
Can I access previously downloaded textures? 2 Answers
Downloading image from the server crash the game in Android Device ? 1 Answer