Description
The Think
method is a virtual method in the Editor.ControlWidget
class. It is designed to be called every frame, allowing the widget to perform any necessary updates or logic that should occur on a per-frame basis. This method is marked with the Editor.EditorEvent/FrameAttribute
, indicating its intended use within the frame update cycle.
Usage
Override the Think
method in a derived class to implement custom per-frame logic for your control widget. This could include updating the widget's state, handling input, or performing animations.
Example
public class MyCustomControlWidget : Editor.ControlWidget
{
public override void Think()
{
// Custom per-frame logic here
if (IsControlHovered)
{
// Change appearance or perform actions when hovered
}
}
}