ValueTracker Constructor
ValueTracker()
Constructor.
Declaration
public ValueTracker()
ValueTracker(String, EventCallback<ChangeEvent<TValue>>, TValue)
Convenience constructor that setups the ValueTracker.
Declaration
public ValueTracker(string propertyPath, EventCallback<ChangeEvent<TValue>> callback = null, TValue initialValue = null)
Parameters
String | propertyPath | Path of the property to be tracked |
EventCallback<ChangeEvent<TValue>> | callback | Set a callback to be called when the property changes |
TValue | initialValue | The initial value of the property. Set it to avoid triggering the callback when the element is bound. |
ValueTracker(SerializedProperty, EventCallback<ChangeEvent<TValue>>, TValue)
Convenience constructor that setups the ValueTracker.
Declaration
public ValueTracker(SerializedProperty property, EventCallback<ChangeEvent<TValue>> callback = null, TValue initialValue = null)
Parameters
SerializedProperty | property | Property to be tracked |
EventCallback<ChangeEvent<TValue>> | callback | Set a callback to be called when the property changes |
TValue | initialValue | The initial value of the property. Set it to avoid triggering the callback when the element is bound. |