Inspector Button [Customizable Editor Buttons With Parameters]
Create inspector button with just a attribute [Button()]. Save your time by not creating editor code for simple things
by SABI
Price History +
Add [Button()] above any method in your script, and a button with the method's name will automatically appear in the Unity Inspector. Clicking the button executes the method instantly, whether in Editor mode or during runtime. No need to write custom editor code for simple button functionality—save time and boost productivity!
The [Button()] attribute supports customization with parameters like:
> text (custom button label)
> width & height (button dimensions)
> bgColor & textColor (button and text colors)
> margin (spacing around the button).
It also supports methods with parameters, allowing you to input values directly in the Inspector before execution. This tool is perfect for debugging, triggering events, testing features, or streamlining workflows.