EditorGUILayout.ObjectField doesn't support custom components, so a custom wizard saves the day. Unfortunately this tool only shows components that are being used by the scene, so it's a "recently used" selection tool.
More...
EditorGUILayout.ObjectField doesn't support custom components, so a custom wizard saves the day. Unfortunately this tool only shows components that are being used by the scene, so it's a "recently used" selection tool.
static void ComponentSelector.Draw< T > |
( |
string |
buttonName, |
|
|
T |
obj, |
|
|
OnSelectionCallback |
cb, |
|
|
bool |
editButton, |
|
|
params GUILayoutOption[] |
options |
|
) |
| |
|
static |
Draw a button + object selection combo filtering specified types.
static void ComponentSelector.Draw< T > |
( |
T |
obj, |
|
|
OnSelectionCallback |
cb, |
|
|
bool |
editButton, |
|
|
params GUILayoutOption[] |
options |
|
) |
| |
|
static |
Draw a button + object selection combo filtering specified types.
delegate void ComponentSelector.OnSelectionCallback |
( |
Object |
obj | ) |
|
Show the selection wizard.
Show the selection wizard.
The documentation for this class was generated from the following file: