Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UWidgetComponent
Description
Sets the local player that owns this widget component. Setting the owning player controls which player's viewport the widget appears on in a split screen scenario. Additionally it forwards the owning player to the actual UserWidget that is spawned.
| Name | SetOwnerPlayer |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/WidgetComponent.h |
| Include Path | #include "Components/WidgetComponent.h" |
| Source | /Engine/Source/Runtime/UMG/Private/Components/WidgetComponent.cpp |
UFUNCTION (BlueprintCallable, Category=UserInterface)
void SetOwnerPlayer
(
ULocalPlayer * LocalPlayer
)