Editor attribute to add a button that invokes a custom method in the inspector.
More...
Inherits DecoratingPropertyAttribute.
|
| | FieldEditorButtonAttribute (string label, string targetMethod) |
| | Initializes a new instance class with the specified label and target method.
|
|
| PropertyAttribute (bool applyToCollection=false) |
|
|
bool | AllowMultipleTargets |
| | Is it allowed to select multiple targets for the button?
|
|
string | Label |
| | Button label.
|
|
string | TargetMethod |
| | The method to invoke when the button is clicked.
|
|
|
const int | DefaultOrder = -10000 |
| | The default order of the attribute.
|
|
| DecoratingPropertyAttribute (bool applyToCollection=false) |
| | Initializes a new instance with the default order.
|
|
| DecoratingPropertyAttribute (int order, bool applyToCollection=false) |
| | Initializes a new instance with the specified order.
|
|
new bool | applyToCollection [get] |
Editor attribute to add a button that invokes a custom method in the inspector.
◆ FieldEditorButtonAttribute()
| FieldEditorButtonAttribute |
( |
string | label, |
|
|
string | targetMethod ) |
Initializes a new instance class with the specified label and target method.
- Parameters
-
| label | The label of the button |
| targetMethod | The method to invoke when the button is clicked |