How can I save serialized fields?

Discussion and help for Easy Save 3
Post Reply
Evorlor
Posts: 2
Joined: Mon Aug 21, 2017 9:54 pm

How can I save serialized fields?

Post by Evorlor »

I am trying to save MonoBehaviour. If my fields are public, it saves awesomely. However, if those same fields are private with the [SerializeField] attribute (and the class [Serializable]), the MonoBehaviour saves as null. These fields are floats.

I am not sure if this is a bug or a limitation of ES3, but the documentation implies that I should be able to save private fields if I use the [SerializeField] attribute. Any thoughts?

(I am using the Easy Save 3 Beta.)

-Sam
User avatar
Joel
Moodkie Staff
Posts: 4852
Joined: Wed Nov 07, 2012 10:32 pm

Re: How can I save serialized fields?

Post by Joel »

Hi Sam,

I've not been able to replicate your issue with the MonoBehaviour being saved as null, but we have identified an issue where private fields marked with the SerializeField attribute weren't being serialized.

If you PM me your invoice number and email address, I'll send you an update which fixes this issue so you can see if this fixes your null MonoBehaviours.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Evorlor
Posts: 2
Joined: Mon Aug 21, 2017 9:54 pm

Re: How can I save serialized fields?

Post by Evorlor »

Thanks for the fix! Works great!
User avatar
Joel
Moodkie Staff
Posts: 4852
Joined: Wed Nov 07, 2012 10:32 pm

Re: How can I save serialized fields?

Post by Joel »

Glad to hear it! :)
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply