void OnUpdate()

book_4_sparkGenerated
code_blocksInput

Description

The OnUpdate method is a virtual method in the RotationEditorTool class, which is part of the Editor namespace. This method is intended to be overridden in derived classes to provide custom update logic for the rotation tool within the editor environment. It is called every frame to update the state of the tool, allowing for real-time interaction and feedback as the user manipulates the rotation of selected GameObjects.

Usage

To use the OnUpdate method, you should create a subclass of RotationEditorTool and override the OnUpdate method to implement your custom logic. This could include handling user input, updating the rotation of selected objects, or providing visual feedback in the editor.

Example

public class CustomRotationTool : RotationEditorTool
{
    public override void OnUpdate()
    {
        // Custom update logic for the rotation tool
        // For example, handle input and update rotation
    }
}