Version: Unity 6 Beta (6000.0)
Language : English
Data binding
Runtime data binding

Comparison of the binding systems

The following table compares the SerializedObject data binding and runtime binding:

Comparison Runtime binding SerializedObject data binding
UI(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info
See in Glossary
Runtime UI, and Editor UI without serialized data. Editor UI
Data types Supports any plain C# object as a data source. Supports only the data types supported by SerializedProperty.
Binding target Can target multiple properties of the same control. Targets only the value property of a INotifyValueChanged<T> control.
Property paths for a list or an array Uses the syntax of Path.To.List[2]. Uses the syntax of Path.To.List.Array.data[2].
Extensibility You can create your own binding types and attributes. Not extensible.

Additional resources

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