EditorToolManager Manager { get; set; }

robot_2Generated
code_blocksInput

Description

The Manager property of the EditorTool class provides access to the EditorToolManager instance associated with the tool. This manager is responsible for handling the lifecycle and operations of editor tools within the Sandbox environment.

Usage

Use the Manager property to interact with the EditorToolManager for tasks such as registering or unregistering tools, managing tool states, and coordinating tool interactions.

Example

// Example of accessing the Manager property in an EditorTool derived class
public class MyCustomTool : EditorTool
{
    public void SomeMethod()
    {
        // Access the EditorToolManager through the Manager property
        EditorToolManager toolManager = this.Manager;
        
        // Use the toolManager to perform operations
        // For example, checking if a specific tool is active
        bool isActive = toolManager.IsToolActive(this);
    }
}