Click or drag to resize

StringDropdownPropertyDrawer Class

PropertyDrawer for strings that can be used to select the string in a dropdown list (similar to enums) Original by DYLAN ENGELMAN http://jupiterlighthousestudio.com/custom-inspectors-unity/ Altered by Brecht Lecluyse http://www.brechtos.com Made more generic by working with any string array by Dusty Hunsaker
Inheritance Hierarchy
SystemObject
  GUIDrawer
    PropertyDrawer
      DustProductions.CoreStringDropdownPropertyDrawer

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 StringDropdownPropertyDrawer : PropertyDrawer

The StringDropdownPropertyDrawer type exposes the following members.

Constructors
  NameDescription
Public methodStringDropdownPropertyDrawer
Initializes a new instance of the StringDropdownPropertyDrawer class
Top
Methods
  NameDescription
Public methodOnGUI
Override the default drawer with this
(Overrides PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent).)
Top
See Also