EditorToolManager Manager { get; set; }

book_4_sparkGenerated
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 accessing tool-related functionalities.

Example

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