GenericDropdown Class

Summary

[Editor-Only] An UnityEditor.IMGUI.Controls.AdvancedDropdown with generic callback delegates.
Assembly
UltEvents.dll
Namespace
UltEvents.Editor
Base Types
  • AdvancedDropdown
graph BT Type-->Base0["AdvancedDropdown"] Type["GenericDropdown"] class Type type-node

Syntax

public class GenericDropdown : AdvancedDropdown

Constructors

Name Summary
GenericDropdown(AdvancedDropdownState, string) Creates a new UltEvents.Editor.GenericDropdown.

Methods

Name Value Summary
AddDisabledItem(string) void
Adds an item which can't be selected.
AddItem(SerializedProperty, string, MenuFunctionState, Action<SerializedProperty>) void
Adds an item which will run the `function` for each target of the `property`.
AddItem(string, bool, GenericMenu.MenuFunction) void
Adds an item which will run the `function` when selected.
AddSeparator(string) void
Adds a separator line.
BuildRoot() AdvancedDropdownItem
DrawTypeField(Rect, SerializedProperty, string, GUIStyle, AdvancedDropdownState, Func<List<Type>>, Action<SerializedProperty, Type>, Action) void
Draws a field which lets you pick a System.Type from a list.
static
ItemSelected(AdvancedDropdownItem) void
ShowContext(Rect) void
Shows this menu relative to the `area`.