Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint > API/Runtime/UMG/Blueprint/UGameViewportSubsystem
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Blueprint/GameViewportSubsystem.h |
| Include | #include "Blueprint/GameViewportSubsystem.h" |
| Source | /Engine/Source/Runtime/UMG/Private/Blueprint/GameViewportSubsystem.cpp |
bool AddWidgetForPlayer
&40;
UWidget &42; Widget,
ULocalPlayer &42; Player,
FGameViewportWidgetSlot Slot
&41;
Remarks
Adds the widget to the game's viewport in the section dedicated to the player. This is valuable in a split screen game where you need to only show a widget over a player's portion of the viewport.