I'm trying to save a custom class.
I have this class:
Code: Select all
public class WorldDescription {
public string name = "";
public string description = "";
public int stars = 0;
public WorldDescription() { }
}
Now i'm trying to save it data to a file that way:
Code: Select all
WorldDescription w = new WorldDescription();
ES2.Save(w, "World1.txt?tag=world");
ES2InvalidDataException: Easy Save 2 Error: The file provided does not contain data that is readable by Easy Save. Please make sure that file was created by Easy Save.
ES2Reader.Next ()
ES2Reader.DeleteTags (ICollection`1 tags, .ES2Writer writer)
ES2Writer.Delete ()
ES2Writer.Save (Boolean checkForOverwrite)
ES2Writer.Save ()
ES2.Save[String] (System.String[] param, System.String identifier)
DataManager.FileWriter () (at Assets/Project/Scripts/DataManager.cs:34)
DataManager.Start () (at Assets/Project/Scripts/DataManager.cs:20)
Please Help me sir