An attribute for serialized strings that allow them to be used with a custom dropdown editor via a reflection method call.
Properties
string OptionListGetterName[Get]
The method name to be used for obtaining an IEnumerable<string> of options available for the drop down menu.
bool RefreshOnRepaint[Get]
Whether or not the dropdown options getter method should be invoked on every repaint or cached. This should be set to true if the list is expected to change throughout interactions with the GUI.
bool AllowInvalid[Get]
Whether or not the dropdown option can be invalid in which case it will be left at index -1. If false, this will always clamp the dropdown to the first option.
bool ShowPropertyIfListIsEmpty[Get]
Returns true if the data options for the field list are empty and displays the property value instead.
bool ShowRefreshButton[Get]
If true a refresh button will be shown
string RefreshMethodName[Get]
If set, this method will be used when the refresh button is pressed. This may be a longer manual refresh if needed and may or may not be the same as the refresh method used for refreshing on paint.
bool ShowSearch[Get]
If set a search button will appear to allow for text based searching of parameters