UEngine::GetGamePlayer

Return the [ULocalPlayer](API\Runtime\Engine\Engine\ULocalPlayer) with the given index.

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 * GetGamePlayer
(
    const UGameViewportClient * InViewport,
    int32 InPlayer
)

Remarks

Return the ULocalPlayer with the given index.

Returns

pointer to the LocalPlayer with the given index

Parameters

Parameter

Description

InPlayer

Index of the player required