Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TrackSerializedObjectValue(VisualElement, SerializedObject, Action<SerializedObject>)

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 8 days ago

Definition

public static void TrackSerializedObjectValue(this VisualElement element, SerializedObject obj, Action<SerializedObject> callback = null)

Parameters

VisualElement tracking an object.

The SerializedObject to track.

Invoked when one of the tracked SerializedObject's value changes.