- Home /
Question by
sarthakshah · Jan 17, 2015 at 08:20 AM ·
javascripttextureserverdownloadwebservice
Not able to download textures from server...
Hello to all,
I am making an application for WebPlayer , inwhich i am trying to download around 100 textures. I have tried to download textures from my server using webservice, which is in xml format. Sometimes some textures are not downloaded, i can't understand about that problem. I have used following code to download textures ,
IEnumerator Start()
{
string url_Texture = “myurl”;
StartCoroutine (setTexture (url_Texture, temp_Product));
}
IEnumerator setTexture (string url, Products productTexture)
{
WWW www = new WWW (url);
yield return www;
productTexture.p_texture = www.texture;
print ("MY Texture:" + url);
// obj.renderer.material.mainTexture = www.texture;
}
Please let me correct...
Thank you...
Comment
Your answer
Follow this Question
Related Questions
Download image files from server with WWW and store it in local storage 3 Answers
Unity networking tutorial? 6 Answers
How to apply downloaded textures on Android/iOS 1 Answer
Download binary file from my FTP server 0 Answers
Android, Xml Serialization and Web Services, trying to access kernel32 and config? 1 Answer