Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Script serialization

Details of how Unity transforms your scripted data structures and object states into a serialized format for storage or reconstruction later on, and how this affects your application performance.
Read time 1 minuteLast updated 4 days ago

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 rulesConditions that determine whether fields in your scripts are serialized.
Custom serializationHow to serialize additional items not supported by Unity's serializer.
How Unity uses serializationMore details about how serialization works in Unity.
JSON SerializationConvert Unity objects to and from JSON format using the JsonUtility class.
Serialization best practicesBest practices for serialization.

Additional resources