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 SerializedProperty to track.
callback Invoked when the tracked SerializedProperty value changes.

Description

Checks the property values for changes every frame and invokes a callback when the property value changes. If no callback is specified, a SerializedPropertyChangeEvent is sent to the target element.