Description
The OnUpdate
method is a virtual method in the RotateTool
class, which is part of the Editor.MeshEditor
namespace. This method is responsible for handling updates to the rotation 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 update logic for the rotation tool. This method is typically used to handle input, update the tool's state, and apply transformations to the selected mesh elements.
Example
public class CustomRotateTool : Editor.MeshEditor.RotateTool
{
public override void OnUpdate()
{
// Custom update logic for the rotation tool
// Example: Check for specific input and apply custom rotation logic
}
}