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

Prefix method with early return for MonoBehaviour enabled/GameObject active state #18

Closed bddckr closed 5 years ago

bddckr commented 5 years ago

Create a new attribute with weaver that allows to just annotate a method with an attribute instead of writing "early outs".

RequiresBehaviourStateAttribute(bool gameObjectShouldBeActive = true, bool behaviourShouldBeEnabled = true)

The weaver should support both void methods as well as any that return something. The early-out should return the default value of that type.

ExtendReality-Bot commented 5 years ago

:tada: This issue has been resolved in version 6.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: