UEngine::GetLocalPlayerFromPlatformUserId

Returns the first LocalPlayer that matches the given platform user id

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 * GetLocalPlayerFromPlatformUserId
(
    UWorld * InWorld,
    const FPlatformUserId PlatformUserId
) const

Remarks

Returns the first LocalPlayer that matches the given platform user id

Returns

The player that has the PlatformUserId specified, or nullptr if no players have that PlatformUserId

Parameters

Parameter

Description

PlatformUserId

Platform user id to search for