Here is what happened.
I’ve tried 2 different methods of loading texture files via WWW.
One is via the web, another is via Asset folder.
They worked in the Editor, but didn’t worked on web player.
//read texture either from web or asset folder var TextureLocation = "www.--myHomepageURL--/" + m_BookID +"/0.jpg"; //var TextureLocation = "file://" + Application.dataPath + m_BookID +"/0.jpg"; var www = new WWW(TextureLocation); yield www; //Won't get loaded if taking away LoadImageIntoTexture /*var tmp = new Texture2D(128,128); www.LoadImageIntoTexture(tmp); cloneBook.renderer.material.mainTexture = tmp;*/
This is what I get in web player
when it should look like this
adjusting number on new Texture2D(x,x) didn’t help;