static void ActivateSubTool()

book_4_sparkGenerated
code_blocksInput

Description

The ActivateSubTool method is a static method of the RotationEditorTool class within the Editor namespace. This method is used to activate a sub-tool within the rotation editor tool, allowing for additional functionality or modes to be accessed when working with rotation tools in the editor environment.

This method is decorated with the Editor.ShortcutAttribute, which assigns a keyboard shortcut to the method. The shortcut is defined as e when the Editor.SceneViewportWidget is focused, with a priority of 0. This allows users to quickly activate the sub-tool using the specified shortcut key.

Usage

To use the ActivateSubTool method, ensure that you are working within the context of the Editor environment and that the RotationEditorTool is active. You can trigger this method by pressing the e key when the Editor.SceneViewportWidget is focused, provided that no other tool with a higher priority is using the same shortcut.

This method does not take any parameters and does not return a value. It is designed to be used as a utility function to enhance the functionality of the rotation tool by enabling additional sub-tools or modes.

Example

// Example of how the ActivateSubTool method might be used in context
// Note: This is a static method, so it is called on the class itself

// Activate the sub-tool for the rotation editor tool
Editor.RotationEditorTool.ActivateSubTool();

// This would typically be triggered by the shortcut key 'e' in the editor environment.