文档

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

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.