- Home /
WWW.texture provides a :"?" texture...
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?
Comment
Best Answer
Answer by benk0913 · Jan 30, 2013 at 01:15 PM
Problem solved, had to put the pictures url which was stored directly (www.storedhere.com\images\picoftheyear.png)