void OnUpdate()

book_4_sparkGenerated
code_blocksInput

Description

The OnUpdate method is a virtual method in the Editor.EditorTool class. It is intended to be overridden in derived classes to provide custom update logic for editor tools. This method is called every frame while the tool is active, allowing for continuous updates or checks to be performed.

Usage

To use the OnUpdate method, create a class that derives from Editor.EditorTool and override the OnUpdate method. Implement the desired logic that should be executed every frame while the tool is active.

Example

public class MyCustomTool : Editor.EditorTool
{
    public override void OnUpdate()
    {
        // Custom update logic here
        // For example, checking for user input or updating tool state
    }
}