ドキュメント

Unity Engine

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.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.