BindingMode
Binding mode to control how a binding is updated.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public enum BindingMode
Remarks
To let the data binding system know that the value in the UI changed, use NotifyPropertyChanged.
Fields
Value | Description |
|---|---|
| ToSource | Changes will only be replicated from the UI to the data source for this binding. |
| ToTarget | Changes will only be replicated from the source to the UI for this binding. |
| ToTargetOnce | Changes will only be replicated once, from the source to the UI. This binding will be ignored on subsequent updates. |
| TwoWay | Changes on the data source will be replicated in the UI. Changes on the UI will be replicated to the data source. |