Class Leap::Attributes::OnEditorChangeAttribute

class Leap.Attributes.OnEditorChangeAttribute : public Leap.Attributes.CombinablePropertyAttribute

Use the OnChange attribute to recieve a callback whenever a field is changed. The callback can be in the form of:

  • A method accepting zero arguments

  • A method accepting a single argument matching the field type (new value is passed in as the argument)

  • A property matching the type of the field (the setter is called with the new value)