Hi guys
i want to load a external image using WWW function… But this dont work in flash build.
I’m using just this code
public class ChangeTexture
{
IEnumerator Start () {
texture1 = new WWW("http://dl.dropbox.com/u/45457759/_Volumes_JORGEN_UVLayout_Skin.jpg");
yield return texture1;
texture2 = new WWW("http://dl.dropbox.com/u/45457759/_Volumes_JORGEN_UVLayout_Skin2.jpg");
yield return texture2;
SkinMaterial.renderer.material.SetTexture("_MainTex",texture1.texture);
SkinMaterial.renderer.material.SetTexture("_Texture2",texture2.texture);
}
}
In projet this is work very good…but after compiled not work.
why ?