Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UWidget
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual APlayerController * GetOwningPlayer () |
Gets the player controller associated with this UI. | Components/Widget.h |
|
TPlayerController * GetOwningPlayer () |
Gets the player controller associated with this UI cast to the template type. | Components/Widget.h |
GetOwningPlayer()
Description
Gets the player controller associated with this UI.
| Name | GetOwningPlayer |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/Widget.h |
| Include Path | #include "Components/Widget.h" |
| Source | /Engine/Source/Runtime/UMG/Private/Components/Widget.cpp |
UFUNCTION (BlueprintCallable, BlueprintCosmetic, Category="Widget")
virtual APlayerController * GetOwningPlayer() const
The player controller that owns the UI.
GetOwningPlayer()
Description
Gets the player controller associated with this UI cast to the template type.
| Name | GetOwningPlayer |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/Widget.h |
| Include Path | #include "Components/Widget.h" |
template<class TPlayerController>
TPlayerController * GetOwningPlayer() const
The player controller that owns the UI. May be NULL if the cast fails.