UUserWidget::GetOwningPlayerPawn

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

Windows
MacOS
Linux

References

Module

UMG

Header

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

Include

#include "Blueprint/UserWidget.h"

Syntax

template<class T>
T * GetOwningPlayerPawn() const

Remarks

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

Returns

Gets the owning player pawn that's owned by the player controller assigned to this widget. 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