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 EditorTool instance and sets it as the active tool.
Fields
Name | Description |
---|---|
m_Tool | Holds a reference to the EditorTool instance created by the action. |
Properties
Name | Description |
---|---|
Tool | Gets a reference to the EditorTool instance created by the action. |
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. |