본문 바로가기

프로그래밍

유니티 플랫폼별 경로들

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/

'프로그래밍' 카테고리의 다른 글

[VC 6] Manifest 추가  (0) 2023.01.12
Native Message (Chrome)  (0) 2015.09.05
NTFS, FAT와 exFAT에 대 한 기본 클러스터 크기  (0) 2015.07.08
윈도우7 SSD 최적화 팁 모음  (0) 2015.02.03