application. Temporarycachepath ==/storage/emulated /0/ Android/data/com.***.*** / Cache
applicationpersistentdatapath== /storage/emulated/0 /android/data/com.***.*** < Span style= "COLOR: #008000" >/ Files
< Span style= "COLOR: #008000" > < Span style= "Font-family:consolas" > Maybe you've come across a bit of a problem with the computer reading the file in that directory, and suddenly it's not going to be readable by Android. Yes, right?
Hmm, well, Android is so special, not the file path is not correct, but the way to read the file on Android not ah
He needs to read it in www. Good pit.
path=application.streamingassetspath+ "file name. Suffix "
< Span style= "COLOR: #008000" > < Span style= "Font-family:consolas" >string str;
ienumerator ReadFile (string path)
{
www www = new www (path);
yield return www;
if (string. IsNullOrEmpty (Www.error))
{
str= Www.text;
}
}
Unity Android Path and considerations