- Home /
What is the most simple way to serialize a list?
I've been struggling with weird exceptions and errors trying to serialize a genetic list of a custom type since last week. People are talking about writing your own serialization class but I have no experience related to serialization. Any ideas?
P.S Please don't recommend plugins. I only want to learn the essence of serializing lists, dictionaries etc.
Are you talking about serializing the list with the Unity serialization system at edit time, or do you talk about a custom serialization system which you want to use at runtime? Also how does your custom class look like?
Bunny83: Second one, it only has a list for now and It has a serializable attribute of course.
Answer by Dracorat · Jun 30, 2014 at 10:11 PM
This takes a bit of reading to fully understand.
Here's an article to get you started: http://www.dotnetperls.com/serialize-list
Your answer
![](https://koobas.hobune.stream/wayback/20220613152855im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Custom assets give Missing (Mono Script) 0 Answers
C# serialization with polymorphism/inheritance. 1 Answer
ScriptableObject stored in MonoBehaviour lost on quit 1 Answer