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"

Source

/Engine/Source/Runtime/Engine/Private/World.cpp

Syntax

ULocalPlayer * GetFirstLocalPlayerFromController() const

Remarks

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

Returns

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