UEngine::FindFirstLocalPlayerFromControllerId

Returns the first [ULocalPlayer](API\Runtime\Engine\Engine\ULocalPlayer) that matches the given ControllerId.

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 * FindFirstLocalPlayerFromControllerId
(
    int32 ControllerId
) const

Remarks

Returns the first ULocalPlayer that matches the given ControllerId. This will search across all world contexts.