Hi All
Upgraded to V 2.6 and this code no longer runs?, what am i missing? images wont load from folder
Regards
S
// Continuously get the latest webcam shot from outside “Friday’s” in Times Square
// and DXT compress them at runtime
var url = “file:///Users/somechap/Desktop/test/Fridays.jpg”;
function Start () {
// Create a texture in DXT1 format
renderer.material.mainTexture = new Texture2D(4, 4, TextureFormat.DXT1, false);
while(true) {
// Start a download of the given URL
var www = new WWW(url);
// wait until the download is done
yield www;
// assign the downloaded image to the main texture of the object
www.LoadImageIntoTexture(renderer.material.mainTexture);
}
}