最終更新:2019-01-23 (水) 19:34:56 (1892d)
Application.persistentDataPath
Top / Application.persistentDataPath
永続的なデータディレクトリのパスを返します(読み取り専用)
https://docs.unity3d.com/jp/current/ScriptReference/Application-persistentDataPath.html
https://docs.unity3d.com/ja/2017.4/ScriptReference/Application-persistentDataPath.html
メモ
- アプリケーションが実行されている間データを維持して保存することが予想されるディレクトリパス
- publicディレクトリ
- この場所はアプリケーションの更新ごとにファイルは削除はされません
プラットフォーム別
Windows
%userprofile%\AppData\Local\Packages\<productname>\LocalState
iOS
/var/mobile/Containers/Data/Application/<guid>/Documents
Android
/storage/emulated/0/Android/data/<packagename>/files
- Context.getExternalFilesDir
- Android/storage/emulated/ユーザ番号/Android/data/パッケージ名/files
- Android/外部ストレージ