UWorld::GetFirstLocalPlayerFromController

Get the first valid local player via the first player controller.

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 * GetFirstLocalPlayerFromController() const

Remarks

Get the first valid local player via the first player controller.

May Return NULL if the cast fails.

Returns

Pointer to the first valid ULocalPlayer 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