static void SetSubTool( string name )

book_4_sparkGenerated
code_blocksInput

Description

The SetSubTool method is a static method of the Editor.EditorToolManager class. It is used to set the current sub-tool in the editor environment by specifying the name of the sub-tool. This allows developers to switch between different sub-tools programmatically within the editor.

Usage

To use the SetSubTool method, call it with the name of the sub-tool you wish to activate. Ensure that the sub-tool name provided is valid and recognized by the editor environment.

Example

// Example of using SetSubTool to change the current sub-tool in the editor
Editor.EditorToolManager.SetSubTool("MoveTool");

// This will set the current sub-tool to 'MoveTool', assuming 'MoveTool' is a valid sub-tool name.