Can't update Fields in ES3Type

Discussion and help for Easy Save 3
Post Reply
Prog_Meisters
Posts: 3
Joined: Sat Mar 19, 2022 10:33 am

Can't update Fields in ES3Type

Post by Prog_Meisters »

In the Easy Save window in the Types tab, I set up a script so that I can save its fields. This worked originally for saving and loading, but now I've added a few more fields, checked the boxes next to them, and it won't save these changes.

If I close the tab and reopen it or click on another ES3Type, the checked fields revert to the original ones I set. Weirdly, when I look at the ES3Type Script for this script, the new fields are there, but if I save the data, the save file don't contain these new types at all. Only the ones I originally set up.

The script I'm trying to save isn't anything complex. Just a few ints, floats, strings, bools, vector3s, and quaternions.

Any idea what preventing it from saving?
Prog_Meisters
Posts: 3
Joined: Sat Mar 19, 2022 10:33 am

Re: Can't update Fields in ES3Type

Post by Prog_Meisters »

I managed to work around this by creating a new class to hold all the variables I want to save and making an ES3Type for it, so I know it's not the data I'm trying to save, but I'm worried that it will break again.

My guess is there's some issue when it's validating the changes to the serialized fields. I'm not sure when exactly it updates. There's no button to commit the changes in the ES3Type menu, it just kinda does it when it feels like it. And I don't know it's doing it when Unity says it's reloading the script assemblies.
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Can't update Fields in ES3Type

Post by Joel »

Hi there,

I've had no reports of this and don't appear to be able to replicate it at my end. Please could you create a new project with a simple scene which replicates this and private message it me with step-by-step instructions?

Note that changes made in the Types window are applied when the window loses focus.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Prog_Meisters
Posts: 3
Joined: Sat Mar 19, 2022 10:33 am

Re: Can't update Fields in ES3Type

Post by Prog_Meisters »

Hopefully I won't get the issue again. I'm not sure what caused it, but if it does happen, I'll see if I can reliably reproduce it in a new project.
Post Reply