OptionNamesDrawer Class Reference

Automatically handles drawing for all display OptionNames variables, such that they look like a standard mask Field.

Public Member Functions

override void OnGUI (Rect position, SerializedProperty property, GUIContent label)
 The OnGUI function handles the actual drawing an OptionNames variable as a standard mask Field
 

Static Public Member Functions

static void StringListAsMaskProperty (Rect r, SerializedProperty prop, GUIContent label, string[] fullList)
 A static version the PropertyDrawer, meant to be use the same way EditorGUI.PropertyDrawer() is. In order to make it more general, the optionNames class is not used. Instead, the "full list" is passed in as a separate parameter. The SerialedProperty contains only the list of selected Items.
 

Inherits PropertyDrawer.