概述
Unity中特殊文件夹,是比较容易混淆的,在此记录一下。
StreamingAssetsPath
StreamingAssets 目录必须在 Assets 根目录下,该目录下所有资源会被打包到游戏里,该目录下的资源不会进行压缩,不加密,是只读不可写的。
StreamingAssetsPath 的访问方式
Unity Editor, Windows, Linux players, PS4, Xbox One, Switch
- Application.dataPath + "/StreamingAssets"
- Application.streamingAssetsPath
November 20, 2020About 2 min