Description
The SetSubTool
method is a static method of the EditorToolManager
class within the Editor
namespace. It is used to set the current sub-tool in the editor by specifying the name of the sub-tool. This allows developers to switch between different sub-tools programmatically within the editor environment.
Usage
To use the SetSubTool
method, call it with the name of the desired sub-tool as a string parameter. Ensure that the sub-tool name corresponds to a valid sub-tool available in the editor.
Example
// Example of using SetSubTool method
EditorToolManager.SetSubTool("MoveTool");
// This will set the current sub-tool to the one named "MoveTool".
// Ensure that "MoveTool" is a valid sub-tool name in your editor environment.