- Home /
Application.persistentDataPath confusion (Android)
Hi everyone,
I've been using Unity3D for about a whole year now and I've finally decided to begin making Android games. I have made a simple game but I don't understand how to save highscores onto the user's android device. I have had a look at the documentations for saving progress and I have read the notes on the Application.persistentDataPath.
What I am stuck on now is how to implement this into a script. I have been trying to figure out how but I am completely lost. I took a stab in the dark and wrote this:
function Update()
{
Application.persistentDataPath + "/save";
}
I know I am doing something wrong for sure. I have been stuck on this for a while. Any help will be appreciated. Thanks :)
(Any programming language is fine but Javascript is preferred).
Answer by HarshadK · Jun 11, 2014 at 06:32 AM
Watch this tutorial on Unity Live Training Archives about Persistence - Saving and Loading Data.
That tutorial has the explanation of how to use 'Application.persistentDataPath' to save and load the data.
Your answer
![](https://koobas.hobune.stream/wayback/20220613151252im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Web player for my project 0 Answers
Saving some aspects of game (save strategy) 1 Answer
How can I save & load gameObjects? 1 Answer
Save and load 0 Answers