UUserWidget::GetOwningPlayer

Gets the player controller associated with this UI cast to the template type.

Windows
MacOS
Linux

Override Hierarchy

UWidget::GetOwningPlayer()

UUserWidget::GetOwningPlayer()

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h

Include

#include "Blueprint/UserWidget.h"

Syntax

template<class T>
virtual T * GetOwningPlayer() const

Remarks

Gets the player controller associated with this UI cast to the template type.

Returns

The player controller that owns the UI. May be NULL if the cast fails.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss