void OnUpdate()

book_4_sparkGenerated
code_blocksInput

Description

The OnUpdate method is a virtual method in the FaceTool class, part of the Editor.MeshEditor namespace. This method is intended to be overridden in derived classes to provide custom update logic for the face tool during each frame or update cycle.

Usage

Override the OnUpdate method in a subclass of FaceTool to implement specific behavior that should occur during each update cycle. This could include handling user input, updating the state of the tool, or performing operations on the selected mesh faces.

Example

public class CustomFaceTool : FaceTool
{
    public override void OnUpdate()
    {
        // Custom update logic here
        // For example, check for user input and modify mesh faces accordingly
    }
}