BindingExtensions.TrackSerializedObjectValue

Declaration

public static void TrackSerializedObjectValue(UIElements.VisualElement element, SerializedObject obj, Action<SerializedObject> callback);

Parameters

element VisualElement tracking an object.
obj The SerializedObject to track.
callback Invoked when one of the tracked SerializedObject's 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: