| QuickButtonAttribute Constructor (String, String, Boolean) |
Use this on a serialized field to quickly add a button to the inspector without having to write custom inspector code.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public QuickButtonAttribute(
string methodName,
string buttonText,
bool showValue = true
)
Parameters
- methodName
- Type: SystemString
The name of the method to call when the button is clicked - buttonText
- Type: SystemString
The text displayed on the button (default is the field name) - showValue (Optional)
- Type: SystemBoolean
Whether or not you want to show the value of the field
See Also