- Home /
on iphone is persistentDataPath the equivalent of Documents?
I'm trying to sort out the unity Application data paths for iphone.
Can someone explain how each one relates to the iphone.
Application.dataPath --not useful on iphone? Application.streamingAssets --only for things you will download with www? Application.persistentDataPath -- same as documents? Is this right?
Answer by whydoidoit · May 29, 2012 at 04:41 PM
So I know I'm posting this under an old question but this is what I know (or think I do :)
persistentDataPath - a location that you are allowed to write to on the device, so you can keep files there between runs
streamingAssetPath - the location that anything in the projects StreamingAssets folder has been copied to. This is for things that the device needs to know about using a local filename, like movies to play on the OS movie player
dataPath - This is the Data folder under your apps install on the phone - you can't write to this, but I think it's the folder under which persistentDataPath and streamingAssetPath live.
Answer by AndrewK · Nov 23, 2012 at 04:05 PM
When I want some data to exists after updating the app, is it the place (persistentDataPath) to keep it? I mean user do some stuff, buy some things, and I want to store that info even after I send next version of my app, so after updating the app user will have tehe same previous bought things.
Your answer
![](https://koobas.hobune.stream/wayback/20220613065909im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
capture the screenshot to iPhone photo gallery 2 Answers
How can I put a mp3 in the iphone documents folder then load it with www? 1 Answer
iPhone saving form data - how and where? 1 Answer
Load from Xml on Iphone and Android 2 Answers
how do i make an object fall onto a specific position? 2 Answers