UEngine::GetGamePlayer

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

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
(
    UWorld * InWorld,
    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

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