Enum MenuAction.MenuActionState
A flag indicating the state of a menu action. This determines whether the menu item is visible, and if visible, enabled.
Namespace: UnityEditor.ProBuilder
Syntax
[Flags]
public enum MenuActionState
Fields
Name | Description | Value |
---|---|---|
Hidden | The button is not visible in the toolbar. |
0 |
Visible | The button is visible in the toolbar. |
1 |
Enabled | The button (and by proxy, the action it performs) are valid given the current selection. |
2 |
VisibleAndEnabled | Button and action are both visible in the toolbar and valid given the current selection. |
3 |