Version: Unity 7.0 Alpha (7000.0)
Language : English
Fix compilation errors in Safe Mode
Code reload

Code reload and serialization

Understand when Unity reloads compiled code, and how it preserves the state of objects across a reload.

When you change a script, the Unity Editor reloads compiled code and rebuilds the state of the objects. Unity writes object states to a serialized form and restores it afterward. The same serialization rules determine which fields appear in the Inspector window and which values persist in assets and scenes.

Topic Description
Code reload Understand when the Unity Editor reloads code, and configure what Unity reloads when you enter Play mode.
Script serialization Details of how Unity transforms scripted data structures and object states into a serialized format for storage or reconstruction later on, and how this affects application performance.

Additional resources

Fix compilation errors in Safe Mode
Code reload
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961