Description
The OnUpdate
method is a virtual method in the BlockTool
class, part of the Editor.MeshEditor
namespace. This method is called every frame when the tool is active, allowing for continuous updates or checks to be performed while the tool is in use.
Usage
Override the OnUpdate
method in a derived class to implement custom behavior that should occur every frame while the BlockTool
is active. This could include updating the tool's state, handling user input, or modifying the scene in real-time.
Example
public class CustomBlockTool : Editor.MeshEditor.BlockTool
{
public override void OnUpdate()
{
// Custom update logic here
// For example, check for user input and modify the block being created
}
}