Hello,
I have been in trouble with an issue lately.
I have coded a PHP file to provide a picture as its only output, not text no other pics no nothing.
The picture is provided by an HTML line ofcoruse ().
Now, the code in unity sends a request, gets the image and returns it as WWW.texture.
urlinfo=db_cfglink2.UserIMAGE+"username="+username+"&type="+type+"&secretkey=***penis***;
print (urlinfo);
WWW urlinfos = new WWW(urlinfo);
yield return urlinfos;
GetComponent<clientid2>().userMaterialCreate(urlinfos.texture,type);
I also made it to assign it as a texture varriable but for some reason the texture varriable has a “Red questionmark texture” and not the one provided by the PHP URL.
Whats wrong with it?