Premise
Project Project Catalog: e:/work/cosmosbox/cb-client/
My computer's current user name: Qingqing
Persistentdatapath
Application.persistentdatapath Persistent Data path, this data example is not deleted when the app is updated : c:/users/qingqing/appdata/locallow/cosmosbox/
The last directory name is the CompanyName set in Playersettings
The Windows platform may have other problems because the user name is non-English note, can be set to Xxx/library/unitywinpersistentdatapath
Public Static stringGetappdatapath () {//use a specific directory for Windows to avoid the presence of the Chinese user if(Application.platform = = Runtimeplatform.windowseditor | | Application.platform = = Runtimeplatform.windowsplayer | | Application.platform = =runtimeplatform.windowswebplayer) {stringDataPath = Application.datapath +"/.. /library/unitywinpersistentdatapath"; if(!directory.exists (DataPath)) Directory.CreateDirectory (DataPath); returnDataPath; } returnApplication.persistentdatapath;}Details: Http://wiki.ceeger.com/script:unityengine:classes:application:application.persistentdatapath
DataPath
Application.datapath Data path (Assets directory) Example: E:/work/cosmosbox/cb-client/assets
Details: http://wiki.ceeger.com/script:unityengine:classes:application:application.datapath?s[]=application
Streamingassetspath
Application.streamingassetspath (assets/streamingassets directory), assetbundle generally stored in this directory, can be read by the WWW example: e:/work/ Cosmosbox/cb-client/assets/streamingassets
Android:jar:file://+application.datapath+string.format ("!/assets/{0}/", Resourcedirname)
Unity editor:file:///
Details: Http://wiki.ceeger.com/script:unityengine:classes:application:application.streamingassetspath
Temporarycachepath
Temporary cache directory for Application.temporarycachepath operating system, example: z:/temp/cosmosbox/[My Computer sets the cache file to Z disk]
Details: http://wiki.ceeger.com/script:unityengine:classes:application:application.temporarycachepath?s[]= Application
Paths in the application