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 windowsWindows machines, but when we build to androidAndroid the saving no longer works. Loading the file we have no problem we are using a Textasset but they are read only so whatWhy is wrong and why wont this open the file on android.that?