The CurrentTool
property of the EditorTool
class represents the currently active tool within the editor environment. This property allows you to get or set the tool that is currently being used in the editor.
The CurrentTool
property of the EditorTool
class represents the currently active tool within the editor environment. This property allows you to get or set the tool that is currently being used in the editor.
To access or modify the current tool in the editor, use the CurrentTool
property. This property is useful when you need to programmatically change the active tool or query which tool is currently active.
// Example of getting the current tool EditorTool currentTool = EditorTool.CurrentTool; // Example of setting the current tool EditorTool.CurrentTool = new SomeSpecificEditorTool(); // Check if a specific tool is active if (EditorTool.CurrentTool is SomeSpecificEditorTool) { // Perform actions specific to SomeSpecificEditorTool }