Inspector Button [Customizable Editor Buttons With Parameters]

SABI

(0)
FREE
Publisher SABI
File size 87.80kB
Number of files 5
Latest version 1
Latest release date 2025-01-20 04:09:12
First release date 2025-01-20 04:09:12
Supported Unity versions 2018.4.2 or higher

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.