www problem (get image) ????

Hello


I have problem to get image from path at runtime.

var pic : Texture2D;
function Start()
{
	var pic2 : WWW = new WWW ("file://C:/Test.png");
	yield pic2;
	pic = pic2.texture;
}

and give me this error

You are trying to load data from a www stream which had the following error when downloading.
Couldn't open file /Test.png

But when I change the root to //D it is work fine

var pic : Texture2D;
function Start()
{
	var pic2 : WWW = new WWW ("file://D:/Test.png");
	yield pic2;
	pic = pic2.texture;
}

thx for help …

use “file: //C:/Test.png”,just add one whitespace after ‘file:’
it works on my pc

Try this method i hope i will help full

public Texture2D tDynamicTx;
public WWW tLoad;
public string images;

images ="file://C:/Test.png";
tLoad= new WWW(images);
tDynamicTx= new Texture2D(64, 64);
tLoad.LoadImageIntoTexture(tDynamicTx);
GUI.Label(new Rect40,40, 64, 64), tDynamicTx);