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
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.
Declaration
public override bool enabled { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
See Also
group
Gets the category assigned to this action.
Declaration
public override ToolbarGroup group { get; }
Property Value
Type | Description |
---|---|
ToolbarGroup |
Overrides
hasFileMenuEntry
Gets whether this class should have an entry built into the hardware menu. This is not implemented for custom actions.
Declaration
protected override bool hasFileMenuEntry { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
icon
Gets the icon to display on the toolbar for this action.
Declaration
public override Texture2D icon { get; }
Property Value
Type | Description |
---|---|
Texture2D |
Overrides
Remarks
This property is not used when the Toolbar display mode is set to text.
tooltip
Gets the contents of the tooltip to display for this menu action.
Declaration
public override TooltipContent tooltip { get; }
Property Value
Type | Description |
---|---|
TooltipContent |
Overrides
validSelectModes
Gets the SelectMode states where this action applies. This drives the hidden property unless you override it.
Declaration
public override SelectMode validSelectModes { get; }
Property Value
Type | Description |
---|---|
SelectMode |
Overrides
Methods
PerformActionImplementation()
Performs the action for this menu item. Use this method to implement the action and then use PerformAction() to call it.
Declaration
protected override ActionResult PerformActionImplementation()
Returns
Type | Description |
---|---|
ActionResult | A new ActionResult with a summary of the state of the action's success. |