Description
The ControlMode
property of the Gizmo
class in the Sandbox namespace is a static string property that represents the current control mode of the gizmo. This property is used to determine how the gizmo interacts with the user, such as whether it is in translation, rotation, or scaling mode.
Usage
To use the ControlMode
property, you can directly access it through the Gizmo
class since it is a static property. You can read the current control mode or set it to a new value to change the behavior of the gizmo.
Example
// Example of accessing the ControlMode property
// Get the current control mode
string currentMode = Gizmo.ControlMode;
// Set the control mode to a new value
Gizmo.ControlMode = "Translate";