ULocalPlayer::GetLocalPlayerIndex

Returns the logical local player index where 0 is the first player [By](API\Developer\AutomationDriver\By) default, this uses index in the game instance 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

virtual int32 GetLocalPlayerIndex() const

Remarks

Returns the logical local player index where 0 is the first player By default, this uses index in the game instance array