UEngine::GetDebugLocalPlayer

Returns the first [ULocalPlayer](API\Runtime\Engine\Engine\ULocalPlayer) that should be used for debug purposes.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Engine/Engine.h"

Source

/Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp

Syntax

ULocalPlayer * GetDebugLocalPlayer()

Remarks

Returns the first ULocalPlayer that should be used for debug purposes. This should only be used in very special cases where no UWorld* is available! Anything using this will not function properly under multiple worlds. Always prefer to use GetFirstGamePlayer() or even better - FLocalPlayerIterator

Returns

the first ULocalPlayer

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