Skip to content

Widget Reference

Reference for UGameViewportWidget (/Script/GameViewportUMG.GameViewportWidget). API verified against plugin source (v5.8) and Unreal MCP.

flowchart TB
  Parent["«parent» UContentWidget"]
  Widget["UGameViewportWidget<br/>bIsActive · ViewMode EViewportViewMode · bShowOverlayText · bUseOrthographicProjection · OrthoWidth · bInvertAlpha · PostProcessSettings · AntiAliasingMethod · FieldOfView<br/>SetCameraLocation() · SetCameraRotation() · UpdateViewMode() · SetFOV() · IsolateActors() · HideActors() · AddContentWidget()"]
  Parent --> Widget
ValueUse for
LitNormal shaded view (default)
WireframeMesh edges
BrushWireframeBrush wireframe
LightComplexityLight count debug
LightmapDensityUV / lightmap density
LitLightmapDensityLit + density
StationaryLightOverlapStationary light overlap
CollisionPawnPawn collision view
CollisionVisibilityVisibility collision

Switch at runtime with Update View Mode or read Get View Mode.

PropertyTypeDescription
Is ActiveBooleanRegisters active timer; viewport paints every frame when true
View ModeEViewportViewModeStarting visualization mode
Show Overlay TextBooleanView mode name overlay
Use Orthographic ProjectionBooleanOrtho vs perspective
Ortho WidthFloatOrthographic width (when ortho enabled)
Invert AlphaBooleanFlip alpha when transparency enabled
Post Process SettingsStructPer-viewport post-process (not all fields apply)
Anti Aliasing MethodEnumNone, FXAA, etc.
Field Of ViewFloatPerspective FOV
FunctionDescription
Set Camera LocationFollow Player Camera Manager or supply Override Location
Set Camera RotationFollow PCM rotation or Override Rotation
Set FOVPerspective field of view
Toggle OrthographicSwitch projection mode
Set Orthographic WidthAdjust ortho width
Is Using Ortho ViewReturns current projection mode
Set Realtime UpdateEnable / disable continuous view updates
FunctionDescription
Isolate ActorsShow only listed actors
Isolate Actors By ClassShow one actor class (optional component tag filter)
Isolate Actors By ClassesMultiple classes (can hitch on large scenes)
Un Isolate ActorsReset show-only list
Hide ActorsHide specific actors
Hide Actors By Class / ClassesHide by class (+ optional tag)
Un Hide ActorsClear hidden list
FunctionDescription
Set TransparencyEnable alpha viewport (requires project post-process alpha support)
Set Invert AlphaFlip alpha interpretation
Is Alpha InvertedQuery invert state

See Transparent viewport for project setup.

FunctionDescription
Add Content WidgetAttach existing User Widget with ZOrder
Add Content Widget From ClassSpawn and attach; returns widget
Remove WidgetRemove by reference
Remove Widget At ZOrderRemove by layer
Clear All WidgetsRemove all overlays
ItemLocation
Content rootGameViewportUMG/
Demo mapDemoMap
Sample overlayWBP_SampleWidget
PrivateDependencyModuleNames.AddRange(new string[] { "GameViewportUMG" });
#include "GameViewportWidget.h"