Class MenuToolToggle
Base class from which any action that is represented in the ProBuilder toolbar inherits.
Inherited Members
Namespace: UnityEditor .ProBuilder
Assembly: Unity.ProBuilder.Editor.dll
Syntax
public abstract class MenuToolToggle : MenuAction
Remarks
A MenuToolToggle is a special action that creates an Editor
Fields
m_Tool
Holds a reference to the Editor
Declaration
protected EditorTool m_Tool
Field Value
Type | Description |
---|---|
Editor |
Properties
Tool
Gets a reference to the Editor
Declaration
public EditorTool Tool { get; }
Property Value
Type | Description |
---|---|
Editor |
Methods
PerformActionImplementation()
Performs the action for this menu item. Use this method to implement the action and then
use Perform
Declaration
protected override ActionResult PerformActionImplementation()
Returns
Type | Description |
---|---|
Action |
A new ActionResult with a summary of the state of the action's success. |