ULocalPlayer::GetIndexInGameInstance

Returns the index of this player in the Game instances local players array

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/LocalPlayer.h

Include

#include "Engine/LocalPlayer.h"

Source

/Engine/Source/Runtime/Engine/Private/LocalPlayer.cpp

Syntax

int32 GetIndexInGameInstance() const

Remarks

Returns the index of this player in the Game instances local players array

Returns

Index in array, will be >= 0 if this is a fully registered player