- Home /
Question by
Mrkelly · Nov 28, 2013 at 04:09 AM ·
wwwstreamingassets
Get "bad url" when using WWW on iPhone
ResourcePath ="file://" + Application.streamingAssetsPath + "/";
I put something in my Streaming Asset folder. It works all well on Android and PC. But it is wrong on my iPhone XCode Simulator
I'm using Unity 4.3f4
Comment
I resolved my problem when I browse a web-page somewhere in StackOverflow.
On iPhone the file path $$anonymous$$UST be escaped!
like this:
ResourcePath = System.Uri.EscapeUriString("file://" + Application.strea$$anonymous$$gAssetsPath + "/")
I have tested there's no need to escape uri on android and PC.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Save Unfinished Download 0 Answers
How to use same material? 0 Answers
Problem using StreamingAssets on Android build 0 Answers
Split string data 0 Answers