Game Viewport Widget
Game Viewport Widget (UGameViewportWidget) renders a real-time 3D viewport inside UMG. No scene capture, render target, or material setup — drag Game Viewport Widget from the palette, tune post-process and FOV in the Details panel, and drive camera or visibility from Blueprint at runtime.
Demo content lives under GameViewportUMG/ (DemoMap, WBP_Viewport, WBP_SampleWidget).
Architecture
Section titled “Architecture”flowchart TB
subgraph umg [UMG hierarchy]
Parent[Your User Widget]
GVW[UGameViewportWidget]
Overlay[Optional overlay widgets via Add Content Widget]
end
subgraph render [Viewport]
Slate[SCustomGameViewport]
World[Live world render]
end
Parent --> GVW
GVW --> Slate --> World
GVW --> Overlay
What is included
Section titled “What is included”| Item | Path | Purpose |
|---|---|---|
| Widget class | UGameViewportWidget | Palette widget under Game Viewport Widget |
| Demo map | DemoMap | Example level |
| Sample overlay | WBP_SampleWidget | Widget rendered on top of the viewport |
| Sample host | WBP_Viewport | Example UMG layout |
Pathfinding flow (camera)
Section titled “Pathfinding flow (camera)”sequenceDiagram
participant Game as Your logic
participant GVW as GameViewportWidget
participant PCM as Player Camera Manager
Game->>GVW: Set Camera Location / Rotation
alt Follow player
GVW->>PCM: Read camera transform each frame
else Custom camera
GVW->>GVW: Use override location / rotation
end
GVW->>GVW: Render viewport
Guides
Section titled “Guides”| Page | Description |
|---|---|
| Getting started | Add widget to UMG and tune Details panel |
| Custom widgets | Overlay UMG on the viewport |
| Transparent viewport | Alpha and post-process setup |
| Overview | Demo, actor isolation, custom camera |
| Widget reference | Properties, view modes, Blueprint API |
Shipped defaults
Section titled “Shipped defaults”| Setting | Default | Notes |
|---|---|---|
| Is Active | true | Keeps viewport ticking when visible |
| View Mode | Lit | See EViewportViewMode |
| Show Overlay Text | — | View mode label overlay |
| Field Of View | — | Perspective FOV (disabled in ortho) |
| Anti Aliasing Method | — | Prefer None or FXAA for performance |
| Use Orthographic Projection | false | Toggle with Toggle Orthographic |