PickerMenu Class

Summary

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

Syntax

public class PickerMenu : AdvancedDropdown

Constructors

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

Fields

Name Constant Value Summary
ContextMenuStyle
If true, a UnityEditor.GenericMenu will be used instead of the AdvancedDropdown.

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, bool, 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`.