I am writing a game that has a save function which looks like this
public void Save()
{
System.Xml.Serialization.XmlSerializer ser = new System.Xml.Serialization.XmlSerializer(this.GetType());
System.IO.StreamWriter file = new System.IO.StreamWriter(("Assets/Resources/Save");
ser.Serialize(file, this);
file.Close();
}
}
This will work fine in the editor and on Windows machines, but when we build to Android the saving no longer works. Why is that?