728x90
์ถ์ฒ: https://3dmpengines.tistory.com/1745
ํ๋ซํผ ๋ณ๋ก Application ํด๋์ค์ Property๋ค์ด ์ง์ ํ๋ ๊ฒฝ๋ก์ Access ์ ๋๊ฐ ๋ค๋ฅด๋ค.
[๋งฅ ์๋ํฐ]
1) Application.persistentDataPath : ์ฌ์ฉ์๋๋ ํ ๋ฆฌ/Library/Caches/unity.ํ์ฌ์ด๋ฆ.ํ๋ก๋ํธ์ด๋ฆ (ํ์ผ ์ฝ๊ธฐ ์ฐ๊ธฐ ๊ฐ๋ฅ)
2) Application.dataPath : ํ๋ก์ ํธ๋๋ ํ ๋ฆฌ/Assets
3) Application.streamingAssetsPath : ํ๋ก์ ํธ๋๋ ํ ๋ฆฌ/Assets/StreamingAssets (ํ์ผ ์ฝ๊ธฐ ์ฐ๊ธฐ ๊ฐ๋ฅ)
[๋งฅ ์์ฉํ๋ก๊ทธ๋จ]
1) Application.persistentDataPath : ์ฌ์ฉ์๋๋ ํ ๋ฆฌ/Library/Caches/unity.ํ์ฌ์ด๋ฆ.ํ๋ก๋ํธ์ด๋ฆ (ํ์ผ ์ฝ๊ธฐ ์ฐ๊ธฐ ๊ฐ๋ฅ)
2) Application.dataPath : ์คํํ์ผ.app/Contents
3) Application.streamingAssetsPath : ์คํํ์ผ.app/Contents/Data/StreamingAssets (ํ์ผ ์ฝ๊ธฐ ์ฐ๊ธฐ ๊ฐ๋ฅ)
[์๋๋ก์ด๋ External]
1) Application.persistentDataPath : /mnt/sdcard/Android/data/๋ฒ๋ค์ด๋ฆ/files (ํ์ผ ์ฝ๊ธฐ ์ฐ๊ธฐ ๊ฐ๋ฅ)
2) Application.dataPath : /data/app/๋ฒ๋ค์ด๋ฆ-๋ฒํธ.apk
3) Application.streamingAssetsPath : jar:file:///data/app/๋ฒ๋ค์ด๋ฆ.apk!/assets (ํ์ผ์ด ์๋ WWW๋ก ์ฝ๊ธฐ ๊ฐ๋ฅ)
[์๋๋ก์ด๋ Internal]
1) Application.persistentDataPath : /data/data/๋ฒ๋ค์ด๋ฆ/files/ (ํ์ผ ์ฝ๊ธฐ ์ฐ๊ธฐ ๊ฐ๋ฅ)
2) Application.dataPath : /data/app/๋ฒ๋ค์ด๋ฆ-๋ฒํธ.apk
3) Application.streamingAssetsPath : jar:file:///data/app/๋ฒ๋ค์ด๋ฆ.apk!/assets (ํ์ผ์ด ์๋ WWW๋ก ์ฝ๊ธฐ ๊ฐ๋ฅ)
[iOS]
1) Application.persistentDataPath : /var/mobile/Applications/ํ๋ก๊ทธ๋จID/Documents (ํ์ผ ์ฝ๊ธฐ ์ฐ๊ธฐ ๊ฐ๋ฅ)
2) Application.dataPath : /var/mobile/Applications/ํ๋ก๊ทธ๋จID/์ฑ์ด๋ฆ.app/Data
3) Application.streamingAssetsPath : /var/mobile/Applications/ํ๋ก๊ทธ๋จID/์ฑ์ด๋ฆ.app/Data/Raw (ํ์ผ ์ฝ๊ธฐ ๊ฐ๋ฅ, ์ฐ๊ธฐ ๋ถ๊ฐ๋ฅ)
728x90