EditorToolbarDropdown
Constructor.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEditor.Toolbars
- Assembly: UnityEditor
EditorToolbarDropdown()
Constructor.
public EditorToolbarDropdown()
EditorToolbarDropdown(Action)
Constructor.
public EditorToolbarDropdown(Action clickEvent)
Parameters
Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of GenericMenu.
EditorToolbarDropdown(string, Action)
Constructor.
public EditorToolbarDropdown(string text, Action clickEvent)
Parameters
The text associated with the element.
Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of GenericMenu.
EditorToolbarDropdown(Texture2D, Action)
Constructor.
public EditorToolbarDropdown(Texture2D icon, Action clickEvent)
Parameters
The icon associated with the element.
Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of GenericMenu.
EditorToolbarDropdown(string, Texture2D, Action)
Constructor.
public EditorToolbarDropdown(string text, Texture2D icon, Action clickEvent)
Parameters
The text associated with the element.
The icon associated with the element.
Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of GenericMenu.