一、StreamingAssets在不同平台下的路径位置
Most platforms (Unity Editor, Windows, Linux players) use
Application.dataPath + "/StreamingAssets"
macOS player uses
Application.dataPath + "/Resources/Data/StreamingAssets"
iOS uses
Application.dataPath + "/Raw"
Android uses files inside a compressed APK/JAR file,
"jar:file://" + Application.dataPath + "!/assets"
二、Android下加载bundle资源
Android下加载bundle资源不需要通过WWW下载,可以直接加载资源。
加载时只需要修改一下路径既可以
"jar:file://" + Application.dataPath + "!/assets"
加载示例如下:
private void LoadAssetBundleTexture()
{