Search found 6 matches

by Alex
Sun Oct 22, 2023 9:47 am
Forum: General Discussion
Topic: Saving a serialisable dictionary
Replies: 10
Views: 2421

Re: Saving a serialisable dictionary

Hmmm, I believed that it wont help, but it worked, i replaced Types folder and everything is working now. If some custom scripts are made from Editor, maybe better to created separate folder for user types
by Alex
Sun Oct 22, 2023 9:38 am
Forum: General Discussion
Topic: Saving a serialisable dictionary
Replies: 10
Views: 2421

Re: Saving a serialisable dictionary

I am using just simple ES3 installed from Package Manager. You mean Assets/Plugins/Easy Save 3/Scripts/Types folder? Or there should be some another folder with types? I am not sure if I made such types in that project, because it was 9 month ago and I don't remember, but I think I didn't make some ...
by Alex
Sun Oct 22, 2023 6:03 am
Forum: General Discussion
Topic: Saving a serialisable dictionary
Replies: 10
Views: 2421

Re: Saving a serialisable dictionary

Strange thing happens. I have working project (2021.3.20f) where I use just use: ES3.Save("levels", levelSaveData, _es3Settings); levelSaveData = ES3.Load("levels", new Dict<int, LevelSaveData>()); without calling OnBeforeSerialize or OnAfterDeserialize and everything works fine....
by Alex
Mon Dec 05, 2022 4:36 pm
Forum: General Discussion
Topic: Save and Load performace
Replies: 4
Views: 899

Re: Save and Load performace

Thx, for your answer, ok I understood about keys, also I have added EDIT section to my post :)
by Alex
Mon Dec 05, 2022 4:19 pm
Forum: General Discussion
Topic: Save and Load performace
Replies: 4
Views: 899

Re: Save and Load performace

Thanks, for your answer. I have related question about 1 key or several key. I am used to do like that: SaveData saveData = new(); then in SaveData i have: PlayerSaveData and EquipmentSaveData. and when I load game, I load all my save into SaveData object. When you answered that fewer keys are quick...
by Alex
Sat Oct 29, 2022 12:24 pm
Forum: General Discussion
Topic: Save and Load performace
Replies: 4
Views: 899

Save and Load performace

I have save object A which have children B and C, and C have D and so on. And all classes have tens of fields I am using a = ES3.Load("A", new A()); (and then I can access a.c.d.somefield) I am curious whats work faster, if i made 1 write or read with lot of data, or should i separate all ...