- Home /
url malformed cannot open file from streaming assets on windows 7
I am trying to open a file using unity's WWW on a windows 7 machine that is in streaming assets. I'm getting a url malformed error.
The path to the file when dropping it onto firefox is: file:///C:/Users/danmacbook/Desktop/game folder/robot/Assets/StreamingAssets/robot.txt
I get a malformed url error when trying to www = new WWW(path); yield www; Debug.Log("data="+www.text);
This had previously worked fine on a mac. Is the problem caused by the spaces between game and folder? Or something else?
I also tried path="file:///"+Application.dataPath+"/StreamingAssets/robot.txt"; but it gives the same error.
Comment
changed game folder to gamefolder to get rid of the space, still same result.