TrackPropertyValue(VisualElement, SerializedProperty, Action<SerializedProperty>)
Executes the callback when the property value changes. Unity checks properties for changes at regular intervals during the update loop. If no callback is specified, a SerializedPropertyChangeEvent is sent to the target element.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor.UIElements
- Assembly: UnityEditor.CoreModule
public static void TrackPropertyValue(this VisualElement element, SerializedProperty property, Action<SerializedProperty> callback = null)
Parameters
VisualElement tracking a property.
The SerializedProperty to track.
Invoked when the tracked SerializedProperty value changes.