Hello,
I try to load a local file with WWW class.
Everything works fine, however isDone function return too early.
Width the following code:
var path = paths[0];
WWW w = new WWW("file://" + path);
Debug.Log("1: " + Time.realtimeSinceStartup);
while (!w.isDone)
{
Debug.Log("not done");
}
Debug.Log("2: " + Time.realtimeSinceStartup);
images.Add(w.texture);
Debug.Log("3: " + Time.realtimeSinceStartup);
I’ve got:
1: 0.02761436
2: 0.03673011
3: 0.3329855
There’s something wrong here no ?
Regards
EDIT : I tryed with a distant file, and everything works correctly.