Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint > API/Runtime/UMG/Blueprint/UUserWidget > API/Runtime/UMG/Blueprint/UUserWidget/GetOwningPlayer
- UWidget::GetOwningPlayer()
- UUserWidget::GetOwningPlayer()
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h |
| Include | #include "Blueprint/UserWidget.h" |
template<class T>
virtual T &42; GetOwningPlayer&40;&41; const
Remarks
Gets the player controller associated with this UI cast to the template type. The player controller that owns the UI. May be NULL if the cast fails.