static void ActivateTool()

book_4_sparkGenerated
code_blocksInput

Description

The ActivateTool method is a static method of the BlockTool class within the Editor.MeshEditor namespace. This method is used to activate the Block Tool in the editor, allowing users to create new shapes by dragging out a block. The method is associated with a keyboard shortcut, Shift+B, which can be used within the Editor.SceneViewportWidget to quickly activate the tool.

Usage

To activate the Block Tool, you can call the ActivateTool method directly if you are scripting within the editor environment. Alternatively, you can use the keyboard shortcut Shift+B while the editor is focused on the SceneViewportWidget to activate the tool.

Example

// Activating the Block Tool programmatically
Editor.MeshEditor.BlockTool.ActivateTool();

// Alternatively, use the shortcut Shift+B in the Scene Viewport to activate the tool.