void OnUpdate()

book_4_sparkGenerated
code_blocksInput

Description

The OnUpdate method is a virtual method in the Editor.MeshEditor.VertexTool class. It is designed to be overridden in derived classes to provide custom update logic for the vertex tool within the mesh editor. This method is called every frame to update the state of the tool, allowing for real-time interaction and manipulation of mesh vertices.

Usage

To use the OnUpdate method, you should create a subclass of VertexTool and override this method to implement specific behavior that should occur during each update cycle. This could include handling user input, updating vertex positions, or other real-time operations related to mesh editing.

Example

public class CustomVertexTool : Editor.MeshEditor.VertexTool
{
    public override void OnUpdate()
    {
        // Custom update logic for the vertex tool
        // Example: Check for user input and modify vertex positions
    }
}