Comparison of the binding systems
Data bindingData 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 elementA node of a visual tree that instantiates or derives from the C# VisualElement
class. You can style the look, define the behaviour, and display it on screen as part of the UI. More info
See in Glossary, 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.
Topic Description 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. Additional resources
Comparison of the binding systems
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4