Version: 2023.2
言語: 日本語
Parallel tessellation
Comparison of the binding systems

Data binding

Data binding synchronizes properties of non-UI objects, such as a string property on a MonoBehaviour, with properties of UI objects, such as the value property of a TextField. A binding refers to the link between the property and the visual control that modifies it. Use bindings to synchronize values between a property and a specific visual element, so you don’t need to write event handlers when the value changes in the UI.

UI Toolkit supports two types of data binding systems that you can use to create bindings for the Editor UI and the runtime UI.

トピック 説明 
Comparison of the binding systems Compares the runtime binding and the SerializedObject data binding.
Runtime data binding Binds the properties of any plain C# object to the properties of a UI control. You can use this type of data binding in the runtime UI. You can also use it in the Editor UI as long as it’s not for serialized data.
SerializedObject data binding Binds the properties of a SerializedObject to the properties of a UI control. You can use this type of data binding only in the Editor UI.

その他の参考資料

Parallel tessellation
Comparison of the binding systems