Description
The ToggleFullscreen
method is a static method of the Editor.SceneViewportWidget
class. It is used to toggle the fullscreen mode of the scene viewport within the editor. This method does not take any parameters and does not return any value.
This method is associated with a shortcut key, which is defined by the Editor.ShortcutAttribute
. The default shortcut for toggling fullscreen is F4
.
Usage
To use the ToggleFullscreen
method, simply call it from the Editor.SceneViewportWidget
class. This will switch the scene viewport between fullscreen and windowed mode.
Example usage:
Editor.SceneViewportWidget.ToggleFullscreen();
Ensure that the editor environment is properly set up to recognize the shortcut key if you prefer using the keyboard shortcut.
Example
// Toggle the fullscreen mode of the scene viewport
Editor.SceneViewportWidget.ToggleFullscreen();