Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TrackPropertyValue(VisualElement, SerializedProperty, Action<SerializedProperty>)

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

Definition

public static void TrackPropertyValue(this VisualElement element, SerializedProperty property, Action<SerializedProperty> callback = null)

Parameters

VisualElement tracking a property.

The SerializedProperty to track.

Invoked when the tracked SerializedProperty value changes.