Application
- 游戏数据文件夹路径(只读,打包加密压缩)
Debug.Log(Application.dataPath);
D:/UnityTest/TestUnity2021Project/New Unity Project/Assets
- 持久化文件夹路径
Debug.Log(Application.persistentDataPath);
C:/Users/gongrenjun/AppData/LocalLow/DefaultCompany/New Unity Project
- StreamingAssets文件夹路径(只读,配置文件,打包后不会加密压缩)
Debug.Log(Application.streamingAssetsPath);
D:/UnityTest/TestUnity2021Project/New Unity Project/Assets/StreamingAssets
- 临时文件夹
Debug.Log(Application.temporaryCachePath);
C:/Users/GONGRE~1/AppData/Local/Temp/DefaultCompany/New Unity Project
- 是否在后台运行 可在Projectt Settins -> Player 选项中设置
Debug.Log(Application.runInBackground);
- 打开URL
Application.OpenURL("http://www.bytefisher.top");
- 退出游戏
Application.Quit();