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 :slight_smile:

(Any programming language is fine but Javascript is preferred).

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.