QuickButtonAttribute Class |
Namespace: DustProductions.Core
public class QuickButtonAttribute : PropertyAttribute
The QuickButtonAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
| QuickButtonAttribute(String, Boolean) |
Use this on a serialized field to quickly add a button to the inspector without having to write custom inspector code.
| |
| QuickButtonAttribute(String, String, Boolean) |
Use this on a serialized field to quickly add a button to the inspector without having to write custom inspector code.
|
| Name | Description | |
|---|---|---|
| MinButtonWidth |
If you want to have the button be a minimum size, you'd set this in pixels
|
| Name | Description | |
|---|---|---|
| ButtonText |
The text displayed on the button (default is the field name)
| |
| MethodName |
The name of the method to call when the button is clicked
| |
| ShowValue |
Whether or not you want to show the value of the field
|