Question by
gumboots · Aug 16, 2016 at 11:02 PM ·
file-iowww.textureescape
WWW fails with hash/pound symbol in path
Hi there,
I'm currently loading a series of textures from the harddrive (and sometimes online). However it is failing if there is a hash in the file and/or folder name. Here is my code:
string path = "C:\Users\Me\Desktop\Test\image.png"; // Works
path = "C:\Users\Me\Desktop\#Test\image.png"; // Doesn't work
GetTexture(path);
public Texture2D GetTexture(string path) {
WWW www = new WWW("file:///" + path);
return www.texture;
}
I'm hoping there's a way to tell it to escape any symbols. But any help is greatly appreciated!
Thanks!
Comment
Your answer

Follow this Question
Related Questions
Can I create text files on Linux? 1 Answer
AI that goes from point a to point b,escapes from the player 0 Answers
Streamwriter writealltext on android in existing file, it clear it, but works fine on pc. 0 Answers
Loading a user-edited texture at runtime without a brief freeze 0 Answers
Reading from file (C#) + Information from scene to scene (C#) 0 Answers