APlayerController::GetLocalPlayer

Returns the [ULocalPlayer](API\Runtime\Engine\Engine\ULocalPlayer) for this controller if it exists, or null otherwise

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/PlayerController.h"

Source

/Engine/Source/Runtime/Engine/Private/PlayerController.cpp

Syntax

ULocalPlayer * GetLocalPlayer() const

Remarks

Returns the ULocalPlayer for this controller if it exists, or null otherwise

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