These tiny scripts add the ability to quickly show a button in the inspector for any zero-argument method.
-
Add the EasyButtons folder to your Unity project
-
Add the Button attribute to a method
-
You should now see a button at the top of the component with the same name as the method
- As mentioned in Issue #4 custom editors don't play well with EasyButtons. As a workaround you can Inherit from ObjectEditor instead of Editor, or manually draw the buttons using extension
DrawEasyButtons
method.