ExtendRealityLtd / Malimbe

[Obsolete - No longer maintained] A collection of tools to simplify writing public API components for the Unity software.
MIT License
51 stars 11 forks source link

feat(PropertySetter): allow using property inside called method - resolves #20 #27

Closed bddckr closed 5 years ago

bddckr commented 5 years ago

If the annotated method tried to call another method that uses the property it would end up working on the previous value instead of whatever this method returns. This change allows to set the value of the property's backing field at any time, thus it can be set before calling a method that needs the latest property value by calling the property's getter.

BREAKING CHANGE: SetsPropertyAttribute was renamed to CalledBySetterAttribute and the expected signature of the annotated method changed. Please see the latest Readme for details.

ExtendReality-Bot commented 5 years ago

:tada: This PR is included in version 8.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: