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

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.


Did you find this page useful? Please give it a rating: