Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint > API/Runtime/UMG/Blueprint/UUserWidget > API/Runtime/UMG/Blueprint/UUserWidget/GetOwningPlayerPawn
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h |
| Include | #include "Blueprint/UserWidget.h" |
template<class T>
T &42; GetOwningPlayerPawn&40;&41; const
Remarks
Gets the player pawn associated with this UI cast to the template type. Gets the owning player pawn that's owned by the player controller assigned to this widget. May be NULL if the cast fails.