ButtonAttribute
- Namespace: Turian
- Source File: ButtonAttribute.cs
Marks a parameterless method to be shown in the inspector as a clickable button. Pressing it invokes the method on the inspected object.
Remarks
The method must be public and take no arguments; others are skipped when the form is built. The button's label is the method's name, humanized (ResetToDefaults reads Reset To Defaults).