Class CutToolToggle
Represents the Cut tool button on the ProBuilder toolbar in the Editor.
Inherited Members
Namespace: UnityEditor.ProBuilder.Actions
Assembly: Unity.ProBuilder.Editor.dll
Syntax
public class CutToolToggle : MenuToolToggle
Properties
Name | Description |
---|---|
enabled | Gets whether or not the action is valid given the current selection. True if this action is valid with the current selection and mode. |
group | Gets the category assigned to this action. |
hasFileMenuEntry | Gets whether this class should have an entry built into the hardware menu. This is not implemented for custom actions. |
icon | Gets the icon to display on the toolbar for this action. |
tooltip | Gets the contents of the tooltip to display for this menu action. |
validSelectModes | Gets the SelectMode states where this action applies. This drives the hidden property unless you override it. |
Methods
Name | Description |
---|---|
PerformActionImplementation() | Performs the action for this menu item. Use this method to implement the action and then use PerformAction() to call it. |