Closed TheDutchMagikarp closed 3 years ago
Added a simple button attribute with the following: [MethodButton(string buttonName)]
I've made the attribute name explicitly state button, just in case there's any other future buttons or attributes that require methods in the future.
There's no arguments right now but I'll look into that in the future.
Here's how it should show up
Added a quick commit so that they default to the method names if one is not provided
Closing for now as button has been implemented, but will reopen when arguments are added
I want to clickity clack in the inspector so I don't have to write key input code for testing methods pls help I don't need no fancy parameters or whatever, just run a method from an inspector button that I added the attribute to. Being able to put a text on the specific button by doing [Button("Name of Button")] would be nice, but not required. It could default to the method name?