Reprint: http://www.manew.com/forum.php?mod=viewthread&tid=21404&extra=page%3D1%26filter%3Dtypeid%26typeid% 3d143
recently used unity to read each platform path, especially for mobile platform path processing
It's a variety of egg-ache pits .
here to share with you the next
IOS:
Application.datapath:application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/xxx.app/data
Application.streamingassetspath:application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/xxx.app/data/raw
application.persistentdatapath:application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/documents
application.temporarycachepath:application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/library/caches
android:
Application.datapath:/data/app/xxx.xxx.xxx.apk
application.streamingassetspath:jar:file:///data/app/xxx.xxx.xxx.apk/!/assets
Application.persistentdatapath:/data/data/xxx.xxx.xxx/files
Application.temporarycachepath:/data/data/xxx.xxx.xxx/cache
Windows Web Player:
Application.datapath:file:///d:/mygame/webplayer (that is, the folder where the package is saved, the folder where the HTML file is located)
Application.streamingassetspath:
Application.persistentdatapath:
Application.temporarycachepath:
Note:
Application.persistentdatapath is the place where the generated files are saved on the mobile side
can not be changed after packing in Resource
put it in application. DataPath the mobile side is not access
===================================================
How do I view my iphone file storage directory? First you need to jailbreak, open the iphone directory after jailbreak, find the/applications directory is the iphone all software directory.
iphone file directory Introduction
1,/applications
installation directory for common software.
2./private ar/mobile/media/iphone video Recorder
The iphone video recorder video file storage directory.
3./private AR/MOBILE/MEDIA/DCIM
the photo file that the camera takes to store the directory.
4,/privatear/mobile/media/itunes_control/music
itunes uploaded multimedia files (such as MP3, MP4, etc.) are stored in the directory, the file has not been modified, but the file name has been modified, directly downloaded to the computer can be read.
5,/private ar/root/media/ebooks
Panda Book Storage directory.
6,/library/ringtones
The system comes with a call ring to store the directory.
7,/system/library/audio/uisounds
SMS Note Other system default effect ringtones (m4r ringtone file extension. caf) SMS ringtone file named sms-received beginning with the CAF file.
8,/privatear/mobile/library/addressbook
the directory where the system phone book is stored.
/privatear/mobile/library/sms
SMS Storage Directory
9,/private ar/mobile/media/iphone Recorder
IPhone Recorder Recording software file storage directory
10,/applications/preferences.app/zh_cn.lproj
Chinese and English file storage directory for software Preferences.app
11,/library/wallpaper
System Q1ang paper Storage directory
12,/system/library/audio/uisounds
storage directory for system sound files
13,/privatear/root/media/pxl
Ibrickr A database built by the upload installer, which is estimated to be similar to the uninstall record for Windows.
14,/bin
similar to the Linux system, it is the directory where the system executes instructions.
15,/privatear/mobile/library/sms
System SMS Storage directory
16,/privatear/run
temporary directory where the system process runs? (see here to see all the processes started by the system)
17,/privatear/logs/crashreporter
The system error log is reported.
If there is insufficient welcome correction!!!
Path in unity corresponds to the path in each platform