DropDown(Rect, VisualElement, DropdownMenuSizeMode)
Displays the menu at the specified position.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public abstract void DropDown(Rect position, VisualElement targetElement, DropdownMenuSizeMode dropdownMenuSizeMode = DropdownMenuSizeMode.Auto)
Parameters
The position in the coordinate space of the panel.
The element determines which root to use as the menu's parent.
Indicates how to format the menu size.