The Frame
method in the Editor.SceneViewportWidget
class is used to control the active state of the viewport widget. This method allows you to specify whether the viewport should be active or inactive based on the boolean parameter provided.
The Frame
method in the Editor.SceneViewportWidget
class is used to control the active state of the viewport widget. This method allows you to specify whether the viewport should be active or inactive based on the boolean parameter provided.
To use the Frame
method, call it on an instance of SceneViewportWidget
and pass a boolean value indicating the desired active state. If true
is passed, the viewport will be set to active; if false
is passed, it will be set to inactive.
// Example of using the Frame method SceneViewportWidget viewportWidget = new SceneViewportWidget(); // Activate the viewport viewportWidget.Frame(true); // Deactivate the viewport viewportWidget.Frame(false);