Version: Unity 6 (6000.0)
Language : English
Running project code on Editor launch
Serialization rules

Script serialization

Serialization is the automatic process of transforming data structures or GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
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 scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary
are serialized.
Custom serialization How to serialize additional items not supported by Unity’s serializer.
How Unity uses serialization More details about how serialization works in Unity.
Serialization errors Serialization errors you might encounter and how to resolve them.
Serialization best practice Best practices for serialization.

Additional resources

Running project code on Editor launch
Serialization rules
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961