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
How can I save serialized fields?
Re: How can I save serialized fields?
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
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
Re: How can I save serialized fields?
Thanks for the fix! Works great!
Re: How can I save serialized fields?
Glad to hear it!