Code: Select all
// Saving
ES3.Save("prefabs_Data_Backup", prefabs_Data, save_Path);
// Loading
prefabs_Data = ES3.Load<List<Prefab_Data>>("prefabs_Data_Backup", save_Path);
After some investigation I found out easy save cant load the Texture2D objects properly. If I remove the images then the loading works without problems. The image is read/write enabled.NullReferenceException: Object reference not set to an instance of an object
ES3Types.ES3Type_Texture2D.ReadUnityObject[T] (ES3Reader reader, System.Object obj) (at Assets/Plugins/Easy Save 3/Scripts/Types/Unity Types/ES3Type_Texture2D.cs:37)
Can someone please tell me if this is a valid way of saving nested classes with lots of data ? And if there is some trick or way to fix the image issue.