- Home /
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!
Answer by TreyH · May 22, 2018 at 09:48 PM
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.
https://answers.unity.com/questions/956047/serialize-quaternion-or-vector3.html
Oh crap...! Then trying to do manually with a Vector3[1000] is not a good idea... XD
Thanks for the answer :D
Bye"
Your answer
Follow this Question
Related Questions
Serialized data not getting saved in iPhone 1 Answer
Unity Serializer scripting error 1 Answer
Saving using Serialization and IDs 0 Answers
how can serialize a gameobject 1 Answer
Why can't I save an array? 1 Answer