UUserWidget::SetOwningPlayer

Sets the local player associated with this UI via PlayerController reference.

Windows
MacOS
Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h

Include

#include "Blueprint/UserWidget.h"

Source

/Engine/Source/Runtime/UMG/Private/UserWidget.cpp

Syntax

void SetOwningPlayer
(
    APlayerController * LocalPlayerController
)

Remarks

Sets the local player associated with this UI via PlayerController reference.

Parameters

Parameter

Description

LocalPlayerController

The PlayerController of the local player you want to be the conceptual owner of this UI.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss