MainToolbarDropdown(MainToolbarContent, Action<Rect>)
Specify the content and function of a main toolbar dropdown.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEditor.Toolbars
- Assembly: UnityEditor
public MainToolbarDropdown(MainToolbarContent content, Action<Rect> openDropdown)
Parameters
The visual content for this button.
The callback that Unity invokes when the user selects the dropdown. Unity provides the where the dropdown appears as a parameter.
rect