SerializationException: Type UnityEngine.Vector3 is not marked as Serializable.

Good day.

There is no questions about this, and i don’t know whats happening.

I have a Load & Save functions that works perfect, until i added some Vector3 variables, some as Vector3[10000] and others without specify the length. But I’m getting this error…

SerializationException: Type UnityEngine.Vector3 is not marked as Serializable.

Is not possible to serialize a vector3[10000] ? or there is maybe some limitation? or what ?

Thaanks!

Vector3 and Quaternion aren’t serializable by default. This answer provides examples for how to just write your own version to convert back and forth when necessary.