The SceneViewportWidget class is part of the Editor namespace and extends the functionality of the Editor.Widget class. It provides a user interface component for displaying and interacting with a scene viewport in the editor environment.
The SceneViewportWidget class is part of the Editor namespace and extends the functionality of the Editor.Widget class. It provides a user interface component for displaying and interacting with a scene viewport in the editor environment.
Member Name | Summary |
---|---|
LastSelected | Gets the last selected SceneViewportWidget instance. |
MousePosition | Gets the current mouse position within the viewport. |
ToggleFullscreen | Toggles the viewport between fullscreen and windowed mode. Shortcut: F4. |
Member Name | Summary |
---|---|
Frame | Frames the viewport to focus on the active scene. Accepts a boolean parameter to specify if the frame should be active. |
OnDragDrop | Handles drag and drop events within the viewport. |
OnDragHover | Handles drag hover events within the viewport. |
OnDragLeave | Handles drag leave events within the viewport. |
SaveState | Saves the current state of the viewport. Triggered by the event: scene.session.save. |
CycleViewmode | Cycles through different view modes in the viewport. Shortcut: CTRL+SPACE. |
Id | Gets the unique identifier for this viewport widget. |
SceneView | Gets the associated SceneViewWidget for this viewport. |
GizmoInstance | Gets the current Gizmo instance used in the viewport. |
Overlay | Gets the overlay widget associated with this viewport. |
State | Gets or sets the current state of the viewport. |