Description
The Think
method is a virtual method in the Editor.RotationControlWidget
class. It is designed to be called regularly to update the state of the widget. This method is typically used to perform any per-frame logic that the widget requires, such as updating its appearance or handling user input.
Usage
To use the Think
method, you should ensure that your RotationControlWidget
instance is properly initialized and added to the scene or editor context where it can be updated. The method does not take any parameters and does not return a value. If you are creating a subclass of RotationControlWidget
, you can override this method to implement custom behavior.
Example
public class CustomRotationWidget : Editor.RotationControlWidget
{
public override void Think()
{
// Custom logic for the widget
// For example, update rotation based on user input
}
}
// Usage
CustomRotationWidget widget = new CustomRotationWidget();
// Add widget to the scene or editor context
// The Think method will be called regularly to update the widget's state