MainToolbar
Interface for the main toolbar of the Unity Editor.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Toolbars
- Assembly: UnityEditor.CoreModule
public static class MainToolbar
Remarks
Call MainToolbar.Refresh to update a specific element in the toolbar, or MainToolbar.OpenMainToolbarPicker to open the Main Toolbar picker. To add custom elements to the toolbar, refer to MainToolbarElementAttribute and MainToolbarElement.
Static Methods
Method | Description |
|---|---|
| OpenMainToolbarPicker | Opens the Main Toolbar picker, pre-filtered to a search term. |
| Refresh | Notify the main toolbar to update the content or behaviour of a toolbar element. |
Enums
Enum | Description |
|---|---|
| MainToolbar.PickerMode | Specifies which tab the Main Toolbar picker opens to. |