EditorTool CurrentTool { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

To access the current tool in the editor, you can use the CurrentTool property. This property is useful when you need to determine which tool is active or when you want to programmatically change the active tool.

Note that this property is decorated with the JsonIgnore attribute, indicating that it will not be serialized when using JSON serialization.

Example

// Example of accessing the CurrentTool property
EditorTool currentTool = EditorTool.CurrentTool;

// Example of setting a new tool as the current tool
EditorTool newTool = new SomeEditorTool();
EditorTool.CurrentTool = newTool;