Description
The SetTool
method is a static method of the EditorToolManager
class. It is used to set the current tool in the editor by specifying the tool's name. This method allows you to change the active tool within the editor environment, facilitating different editing modes or functionalities based on the tool selected.
Usage
To use the SetTool
method, call it with the name of the tool you wish to activate as a string parameter. Ensure that the tool name corresponds to a valid tool within the editor environment.
Example
// Example of using SetTool method
Editor.EditorToolManager.SetTool("MoveTool");
// This will set the current tool to the Move Tool, assuming "MoveTool" is a valid tool name in the editor.