【路径区别】一个需要"file://",一个不需要;
1.WWW.LoadFromCacheOrDownload() 路径为:"file://" + Application.dataPath + "/StreamingAssets/"+ "Sphere.assetbundle"
2.AssetBundle.CreateFromFile() 路径为:Application.dataPath + "/StreamingAssets/"
时间: 2024-10-12 04:22:29
【路径区别】一个需要"file://",一个不需要;
1.WWW.LoadFromCacheOrDownload() 路径为:"file://" + Application.dataPath + "/StreamingAssets/"+ "Sphere.assetbundle"
2.AssetBundle.CreateFromFile() 路径为:Application.dataPath + "/StreamingAssets/"