유니티 플랫폼별 경로
Editor
- Application.dataPath /*project*/Assets
Web Player
System.IO.Path.GetFullPath(".") | %Project% |
Application.dataPath | %Project%/Assets |
Application.persistentDataPath | %userprofile%\AppData\LocalLow/%Company%/%Product% |
Application.streamingAssetsPath | %Project%/Assets/StreamingAssets |
Application.temporaryCachePath | %LocalAppData%/Local/Temp/Temp/%Company%/%Product% |
Android
System.IO.Path.GetFullPath(".") | / |
Application.dataPath | /data/app/%BundleIdentifier%.apk |
Application.persistentDataPath | /data/data/%BundleIdentifier%/files |
Application.streamingAssetsPath | jar:file:///data/app/%BundleIdentifier%.apk/!/assets |
Application.temporaryCachePath | /data/data/%BundleIdentifier%/cache |
Android sdcard
Application.persistentDataPath | /mnt/sdcard/Android/data/%BundleIdentifier%/files |
Application.streamingAssetsPath | jar:file:///data/app/%BundleIdentifier%.apk/!/assets |
Application.temporaryCachePathz | /mnt/sdcard/Android/data/%BundleIdentifier%/cache |
iOS
System.IO.Path.GetFullPath(".") | / |
Application.dataPath | %ProvisioningProfile%/%BundleIdentifier%.app/Data |
Application.persistentDataPath | %ProvisioningProfile%/Documents |
Application.streamingAssetsPath | %ProvisioningProfile%/%BundleIdentifier%.app/Data/Raw |
Application.temporaryCachePath | %ProvisioningProfile%/Library/Caches |
// ** iPhone device
- Application.dataPath /var/mobile/Applications/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Assets
- Application.persistentDataPath : /var/mobile/Applications/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Documents
- Application.temporaryCachePath : /var/mobile/Applications/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Library/Caches
- iPhpone Simulator Path : /Users/<Name>/Library/Application Support/iPhone Simulator/4.1/Applications/<GUID>/
// ** Android
- Application.dataPath /mnt/asec/com.xxx.xxx/pkg.apk
- Application.persistentDataPath /data/data/com.xxx.xxx/files/
- Application.temporaryCachePath /data/data/com.xxx.xxx/cache/
* sdcard 사용시.
- Application.persistentDataPath /mnt/sdcard/Android/data/com.xxx.xxx/files/
- Application.temporaryCachePath /mnt/sdcard/Android/data/com.xxx.xxx/cache/