Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UUserWidget
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
APawn * GetOwningPlayerPawn () |
Gets the player pawn associated with this UI. | Blueprint/UserWidget.h |
|
T * GetOwningPlayerPawn () |
Gets the player pawn associated with this UI cast to the template type. | Blueprint/UserWidget.h |
GetOwningPlayerPawn()
Description
Gets the player pawn associated with this UI.
| Name | GetOwningPlayerPawn |
| 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 |
UFUNCTION (BlueprintCallable, BlueprintCosmetic, Category="Player")
APawn * GetOwningPlayerPawn() const
Gets the owning player pawn that's owned by the player controller assigned to this widget.
GetOwningPlayerPawn()
Description
Gets the player pawn associated with this UI cast to the template type.
| Name | GetOwningPlayerPawn |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h |
| Include Path | #include "Blueprint/UserWidget.h" |
template<class T>
T * GetOwningPlayerPawn() const
Gets the owning player pawn that's owned by the player controller assigned to this widget. May be NULL if the cast fails.