Class Leap::Unity::Attributes::OnEditorChangeAttribute

class Leap.Unity.Attributes.OnEditorChangeAttribute : public Leap.Unity.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)