UWorld::GetFirstPlayerController

May return NULL if the cast fails.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/World.h

Include

#include "Engine/World.h"

Syntax

template<class T>
T * GetFirstPlayerController() const

Remarks

May return NULL if the cast fails.

Returns

Returns the first player controller cast to the template type, or NULL if there is not one.

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