Hello Unity peeps,
So i keep getting the following error with my code:
You are trying to load data from a www stream which had the following error when downloading.
malformed
And heres my code:
string url = Application.streamingAssetsPath + "/" + textureName;
WWW www = new WWW(url);
yield return www;
gameObject.renderer.material.mainTexture = www.texture; //error points to this line
It works fine if i use a http address for the url which makes me think i might using it wrong but from reading the docs i thought this was okay?!?! Anywho any help would be great, im using unity 3.5.7, on a mac building for iOS and Android.