Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UUserWidget
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual APlayerController * GetOwningPlayer () |
Gets the player controller associated with this UI. | Blueprint/UserWidget.h | |
virtual T * GetOwningPlayer () |
Gets the player controller associated with this UI cast to the template type. | Blueprint/UserWidget.h |
GetOwningPlayer()
Description
Gets the player controller associated with this UI.
| Name | GetOwningPlayer |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h |
| Include Path | #include "Blueprint/UserWidget.h" |
| Source | /Engine/Source/Runtime/UMG/Private/UserWidget.cpp |
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/Blueprint/UserWidget.h |
| Include Path | #include "Blueprint/UserWidget.h" |
template<class T>
virtual T * GetOwningPlayer() const
The player controller that owns the UI. May be NULL if the cast fails.