Summary
Draws a field which lets you pick a System.Type
from a list.
Syntax
public static void DrawTypeField(Rect area, SerializedProperty property, string selectedTypeName, bool showFullTypeNames, GUIStyle style, ref AdvancedDropdownState state, Func<List<Type>> getTypes, Action<SerializedProperty, Type> setValue, Action onOpenMenu = null)
Parameters
Name |
Type |
Description |
area |
Rect |
|
property |
SerializedProperty |
|
selectedTypeName |
string |
|
showFullTypeNames |
bool |
|
style |
GUIStyle |
|
state |
AdvancedDropdownState |
|
getTypes |
Func<List<Type>> |
|
setValue |
Action<SerializedProperty, Type> |
|
onOpenMenu |
Action |
|
Return Value