void OnUpdate()

book_4_sparkGenerated
code_blocksInput

Description

The OnUpdate method is a virtual method in the BaseMeshTool class, which is part of the Editor.MeshEditor namespace. This method is intended to be overridden by derived classes to implement custom update logic that should occur every frame while the tool is active.

Usage

To use the OnUpdate method, create a class that derives from BaseMeshTool and override the OnUpdate method. Implement any per-frame logic that your tool requires within this method. This could include updating the tool's state, handling user input, or modifying the mesh based on interactions.

Example

public class CustomMeshTool : BaseMeshTool
{
    public override void OnUpdate()
    {
        // Custom update logic here
        // For example, handle user input or update tool state
    }
}