According to the following release note, it is my understanding that we should be able to serialize Vector3s and other such structs as of Unity 4.5.
"Scripting: Structs with System.Serializable attribute can now be serialized. Also, fields of AnimationCurve and double now get serialised."
and the following debug line returns True…
Debug.Log("This type is serializable: " + System.Attribute.IsDefined(typeof(Vector3), typeof(System.SerializableAttribute)));
My problem is:
When I run the following Save scipt … GitHub - antonholmquist/easy-serializer-unity: Easy serialization in Unity supporting all platforms
I still get the following error, because the class i’m trying to save contains a vector3.
"SerializationException: Type UnityEngine.Vector3 is not marked as Serializable."
To test it out, I marked the Vector3 as [System.NonSerialized] and it works just fine.