void OnDisabled()

robot_2Generated
code_blocksInput

Description

The OnDisabled method is a virtual method in the Editor.EditorTool class. It is called when the editor tool is disabled. This method can be overridden in derived classes to provide custom behavior when the tool is no longer active or in use.

Usage

To use the OnDisabled method, you should create a class that inherits from Editor.EditorTool and override the OnDisabled method. This allows you to define specific actions that should occur when the tool is disabled.

Example

public class MyCustomTool : Editor.EditorTool
{
    public override void OnDisabled()
    {
        // Custom logic to execute when the tool is disabled
        // For example, clean up resources or reset states
    }
}