Hi everyone,
I am having hard times with LoadImageIntoTexture fonction on webplayer. While it is working just fine
on editor mode, it simply crashes the webplayer.
Here is the code of the function where it is used. The var “chemin” is a web adress.
It crashes on first call, it is a very small image.
function AssigneTextureIcone(chemin :String)
{
//Debug.Log("AssigneTextureIcone");
// Start a download of the given URL
var twww = new WWW(chemin);
// wait until the download is done
yield twww;
// assign the downloaded image to the main texture of the object
twww.LoadImageIntoTexture(iconeBase);
}
Does anyone experienced this issue or had an idea of where it comes from ?
Thanks !