class SceneViewportWidget : Widget

robot_2Generated
code_blocksInput

Description

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.

Members

Static Members

Member NameSummary
LastSelectedGets the last selected SceneViewportWidget instance.
MousePositionGets the current mouse position within the viewport.
ToggleFullscreenToggles the viewport between fullscreen and windowed mode. Shortcut: F4.

Instance Members

Member NameSummary
FrameFrames the viewport to focus on the active scene. Accepts a boolean parameter to specify if the frame should be active.
OnDragDropHandles drag and drop events within the viewport.
OnDragHoverHandles drag hover events within the viewport.
OnDragLeaveHandles drag leave events within the viewport.
SaveStateSaves the current state of the viewport. Triggered by the event: scene.session.save.
CycleViewmodeCycles through different view modes in the viewport. Shortcut: CTRL+SPACE.
IdGets the unique identifier for this viewport widget.
SceneViewGets the associated SceneViewWidget for this viewport.
GizmoInstanceGets the current Gizmo instance used in the viewport.
OverlayGets the overlay widget associated with this viewport.
StateGets or sets the current state of the viewport.