Description
The GizmoInstance
property of the SceneRenderingWidget
class provides access to the current instance of a gizmo being used within the scene rendering context. Gizmos are visual tools that assist in the manipulation and visualization of objects within the editor environment.
Usage
To access the GizmoInstance
property, you need to have an instance of the SceneRenderingWidget
class. This property is useful when you need to interact with or modify the gizmo currently active in the scene.
Example
// Assuming 'sceneWidget' is an instance of SceneRenderingWidget
var currentGizmo = sceneWidget.GizmoInstance;
// You can now interact with the current gizmo instance
if (currentGizmo != null)
{
// Perform operations with the gizmo instance
// For example, check its type or modify its properties
}