Version: Unity 6.7 Alpha (6000.7)
Language : English
Domain and scene reload execution order reference
Serialization rules

Script serialization

Serialization is the automatic process of transforming data structures or GameObject states into a format that Unity can store and reconstruct later.

How you organize data in your Unity project affects how Unity serializes that data, which can have a significant impact on the performance of your project. This page outlines serialization in Unity and how to optimize your project for it.

Topic Description
Serialization rules Conditions that determine whether fields in your scripts are serialized.
Serialization rules analyzer The Unity serialization rules analyzer helps you write correct serialization code by detecting common mistakes at compile time.
Custom serialization How to serialize additional items not supported by Unity’s serializer.
Dictionary serialization Serialize Dictionary<TKey, TValue> fields and edit them in the Inspector.
How Unity uses serialization More details about how serialization works in Unity.
JSON Serialization Convert Unity objects to and from JSON format using the JsonUtility class.
Serialization best practices Best practices for serialization.

Additional resources

Domain and scene reload execution order reference
Serialization rules