Click or drag to resize

QuickButtonPropertyDrawer Class

Override the default property drawer to instead show a button that can run code in the class it's in.
Inheritance Hierarchy
SystemObject
  GUIDrawer
    PropertyDrawer
      DustProductions.CoreQuickButtonPropertyDrawer

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core.Editor (in DustProductions.Core.Editor.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class QuickButtonPropertyDrawer : PropertyDrawer

The QuickButtonPropertyDrawer type exposes the following members.

Constructors
  NameDescription
Public methodQuickButtonPropertyDrawer
Initializes a new instance of the QuickButtonPropertyDrawer class
Top
Methods
  NameDescription
Public methodGetPropertyHeight
Override the default height drawer depending on any padding we need
(Overrides PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent).)
Public methodOnGUI
Override the default drawer with this
(Overrides PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent).)
Top
See Also