UGameViewportClient::ConvertLocalPlayerToGamePlayerIndex

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

Choose your operating system:

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