This version of Unity is unsupported.

BindingExtensions.TrackPropertyValue

Declaration

public static void TrackPropertyValue(UIElements.VisualElement element, SerializedProperty property, Action<SerializedProperty> callback);

Parameters

element VisualElement tracking a property.
property The SerializedProperty to track.
callback Invoked when the tracked SerializedProperty value changes.

Description

Checks the property values for changes at regular intervals. Executes the callback when the property value changes. If no callback is specified, a SerializedPropertyChangeEvent is sent to the target element.