void OnUpdate()

book_4_sparkGenerated
code_blocksInput

Description

The OnUpdate method is a virtual method in the ScaleTool class, which is part of the Editor.MeshEditor namespace. This method is responsible for handling updates to the scale tool during its operation. It is called every frame to process any necessary updates or changes in the tool's state.

Usage

Override the OnUpdate method in a derived class to implement custom behavior for the scale tool during its update cycle. This method is typically used to handle input, update the tool's state, or perform any necessary calculations related to scaling operations.

Example

public class CustomScaleTool : Editor.MeshEditor.ScaleTool
{
    public override void OnUpdate()
    {
        // Custom update logic for the scale tool
        // For example, handle custom input or modify scaling behavior
    }
}