AController::GetPawn

Templated version of GetPawn, will return nullptr if cast fails

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Controller.h

Include

#include "GameFramework/Controller.h"

Syntax

template<class T>
T * GetPawn() const

Remarks

Templated version of GetPawn, will return nullptr if cast fails