static void SetTool( string name )

book_4_sparkGenerated
code_blocksInput

Description

The SetTool method is a static method of the Editor.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 to one that matches the provided name, facilitating tool management within the editor environment.

Usage

To use the SetTool method, call it with the name of the tool you wish to activate. Ensure that the tool name provided is valid and corresponds to a tool available in the editor.

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.