void OnSelectionChanged()

robot_2Generated
code_blocksInput

Description

The OnSelectionChanged method is a virtual method in the Editor.EditorTool class. It is called whenever the selection changes within the editor environment. This method can be overridden in derived classes to provide custom behavior when the selection of objects in the editor changes.

Usage

To use the OnSelectionChanged method, create a class that derives from Editor.EditorTool and override the OnSelectionChanged method. Implement the desired behavior that should occur when the selection changes.

Example

public class MyCustomEditorTool : Editor.EditorTool
{
    public override void OnSelectionChanged()
    {
        // Custom logic to execute when the selection changes
        // For example, update UI elements or perform specific actions
    }
}