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/
출처 :
'프로그래밍 > Unity3D' 카테고리의 다른 글
[Unity3D] 유니티 메시를 STL(format)으로 변환하여 저장 하기. (0) | 2016.02.22 |
---|---|
[Unity3D] 카메라를 기준으로 캐릭터의 forward와 Right Vector구하기 (0) | 2016.02.22 |
[Unity3D] 파일 입출력 기본 (0) | 2016.02.22 |
[Unity3D] 좀더 쉬운 XML저장 방법 (0) | 2016.02.22 |
[Unity3D] 멀티터치를 이용하여 줌인 줌아웃 구현 (0) | 2016.02.22 |