Enhanced MonoBehaviour - edcasillas/unity-common-utils GitHub Wiki
Derive from EnhancedMonoBehaviour instead of MonoBehaviour to get access to the following perks for free:
- Expose properties and methods at runtime to the Inspector using the
[ShowInInspector]attribute, no need to define a separate custom editor. - Use the
this.DebugLogextension method to write selective log messages to the console. TheEnhancedMonoBehaviourbase class already implementsIVerbosableand defines a verbosable flag that can be set in the Inspector. - Have the
IUnityComponentinterface already implemented in the class, so decoupling it from its dependencies becomes easier.