Hii, i am simply trying to use
WWW.texture
simply copied the code in a js script, named it and saved it, attached it to a plane…when i play the plane is showing a red colored question mark…
and 1 error coming -
You are trying to load data from a www stream which had the following error when downloading.
couldn’t connect to host
UnityEngine.WWW:get_texture()
$:MoveNext() (at Assets/load from www.js:12)
why is it coming ??
Sounds like it couldn’t connect to the host of the URL entered in your WWW request.
i simply copied it from unity script reference
//http://images.earthcam.com/ec_metros/ourcams/fridays.jpg , this link works
initially the same script was working fine
when i nuild it, i get the result
So the source you just pasted is all you have in your script or did you do any modifications?
hiiii, yes i got just that code… its not playing in game mode [which it used to], but when i did a web build, it worked fine
So given that it used to work in play mode and the URL is valid, you must have changed something in your setup.