UEngine::GetDebugLocalPlayer

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

Choose your operating system:

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