UGameViewportClient::ConvertLocalPlayerToGamePlayerIndex

Convert a LocalPlayer to it's index in the GamePlayer array

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h

Include

#include "Engine/GameViewportClient.h"

Source

/Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp

Syntax

int32 ConvertLocalPlayerToGamePlayerIndex
(
    ULocalPlayer * LPlayer
)

Remarks

Convert a LocalPlayer to it's index in the GamePlayer array

Returns

-1 if the index could not be found.

Parameters

Parameter

Description

LPlayer

Player to get the index of

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