Malimbe
Malimbe copied to clipboard
Overhaul [Cleared]
- Rename the attribute to
ClearsToDefaultAttributeand also allow setting non-reference types (see[RequiresBehaviourState]for the logic to set todefault). - Add a new attribute
ClearsByMethodAttributewhich takes thenameofthe method to call on the property to clear it. This needs to handlenullproperty values(!), and shall ensure the method exists on the property's type(!) and the method is accessible(!) and takes no arguments(!). The method's return value shall be ignored.