- Home /
Save Data on iOS
I want save data with asset Save Data 1.0 from Arkham Interactive, is a free asset. It works perfectly with pc edition, and works on android chanching streamingAssets for persistentDataPath. But I want this app in my iPhone, and all works fine, but not save, or not load. I don't kown. This is what I changed:
public static SaveData persistentDataPath(string fileName)
{
return Load(Application.persistentDataPath + "\\" + fileName);
}
public void Save() { Save(Application.persistentDataPath + "\\" + fileName +extension); }
and on the script where I want save:
private void Start()
{
data = new SaveData(fileName);
temporal.text = (Application.persistentDataPath+"\\");
pos = clientNumero1.transform.position;
Debug.Log(Application.persistentDataPath);
if(File.Exists(Application.persistentDataPath + "\\" + fileName + ".uml"))
{
data = SaveData.Load(Application.persistentDataPath + "\\" + fileName + ".uml");
}
else
{
data.Save();
}
Comment
Your answer

Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Save points from one scene to another? 3 Answers
Renderer on object disabled after level reload 1 Answer
Saving Player Data 3 Answers