Unity c# Application类 文件路径

Application.dataPath  Assets资源文件夹的绝对路径
Application.persistentDataPath  持久性的数据存储路径,在不同平台路径不同,但都存在,绝对路径
Application.streamingAssetsPath  Assets资源文件夹下StreamingAssets文件夹目录的绝对路径
Application.temporaryCachePath  游戏运行时的缓存目录,也是绝对路径
 

Application.dataPath 返回的路径目录,在移动端是没有访问权限的(既不能访问此目录)。

猜你喜欢

转载自blog.csdn.net/qq_21743659/article/details/130622893