Click or drag to resize

QuickButtonAttribute Class

Use this on a serialized field to quickly add a button to the inspector without having to write custom inspector code.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    PropertyAttribute
      DustProductions.CoreQuickButtonAttribute

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class QuickButtonAttribute : PropertyAttribute

The QuickButtonAttribute type exposes the following members.

Constructors
  NameDescription
Public methodQuickButtonAttribute(String, Boolean)
Use this on a serialized field to quickly add a button to the inspector without having to write custom inspector code.
Public methodQuickButtonAttribute(String, String, Boolean)
Use this on a serialized field to quickly add a button to the inspector without having to write custom inspector code.
Top
Properties
  NameDescription
Public propertyMinButtonWidth
If you want to have the button be a minimum size, you'd set this in pixels
Top
Fields
  NameDescription
Public fieldButtonText
The text displayed on the button (default is the field name)
Public fieldMethodName
The name of the method to call when the button is clicked
Public fieldShowValue
Whether or not you want to show the value of the field
Top
See Also