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