Serialization and Mono

Just found out that [OptionalFieldAttribute] does not work on Mono, and therefore on Unity 😦

Actually a new field in a class should not throw any error messages on older applications using older versions of this class.

But unfortunately it does throw an error on Mono and there is no way of preventing that on the older applications 😦

Here some links about it:

How it should work

Nice info on how to handle optional fields

Another fellow having the same issue

and if you are still curios about it, BinaryFormatter.AssemblyFormat

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s