Serialization system in Unity
When developing a game, adding a reliable content saving and loading feature is a critical part of the development process. If you're using a game engine editor, such as the Unity engine editor, you'll also need some common editor features, such as undo, saving editor settings, and more. All of this, whether the game saves or loads content at runtime, or whether the developer uses the editor to develop the game, is built on serialization.
What is Unity's serialization system?
So, what is serialization? According to Wikipedia, the definition of serialization is the process of translating a data structure or object state into a format that can be stored or transmitted and reconstructed later. The opposite operation is deserialization
.
In Unity, there are three serialization formats, namely the following:
- Binary serialization
YAML
serializationJSON
serialization
YAML and binary serialization in Unity
Assets...