01.
//不同平台下StreamingAssets的路径是不同的,这里需要注意一下。
02.
public
static
readonly string PathURL =
03.
#
if
UNITY_ANDROID
//安卓
04.
"jar:file://"
+ Application.dataPath +
"!/assets/"
;
05.
#elif UNITY_IPHONE
//iPhone
06.
Application.dataPath +
"/Raw/"
;
07.
#elif UNITY_STANDALONE_WIN || UNITY_EDITOR
//windows平台和web平台
08.
"file://"
+ Application.dataPath +
"/StreamingAssets/"
;
09.
#
else
10.
string.Empty;
11.
#endif