BindingUpdateSkipConditions
Conditions on the target element in which a binding skips its updates.
Read time 1 minuteLast updated 7 hours ago
Definition
- Type: Enum
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
[Flags]public enum BindingUpdateSkipConditions
Remarks
A binding that skips an update for an element updates it in the first update in which none of its conditions apply, even if its data source didn't change since. The conditions are evaluated once per element, before any of its bindings are updated, using the layout of the previous frame. As a result, changes of display apply with a one-frame delay: an element that becomes displayed shows the values of its last update for one frame, and an element that stops being displayed is updated one more time. An element that gets a new data source or data source path, for example because it was just added to a panel or because it's a pooled row that a ListView shows for another item, updates in the same frame, unless it or one of its ancestors isn't displayed.
Fields
Value | Description |
|---|---|
| None | The binding updates regardless of the state of its element. |
| NonVisible | The binding skips its updates when its element isn't displayed, because IStyle.display is DisplayStyle.None on the element or on an ancestor, or when its element is hidden, because its resolved IStyle.visibility is Visibility.Hidden. |