ドキュメント

Unity Engine

Unity Engine

DropDown(Rect, VisualElement, DropdownMenuSizeMode)

Displays the menu at the specified position.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public abstract void DropDown(Rect position, VisualElement targetElement, DropdownMenuSizeMode dropdownMenuSizeMode = DropdownMenuSizeMode.Auto)

Parameters

position

The position in the coordinate space of the panel.

targetElement

The element determines which root to use as the menu's parent.

dropdownMenuSizeMode

Indicates how to format the menu size.