Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ULocalPlayer
Description
Returns the logical local player index where 0 is the first LocalPlayer that was created. By default, this uses index in the game instance array. This index is used for gameplay purposes but will not be correct for platform functions.
| Name | GetLocalPlayerIndex |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/LocalPlayer.h |
| Include Path | #include "Engine/LocalPlayer.h" |
| Source | /Engine/Source/Runtime/Engine/Private/LocalPlayer.cpp |
virtual int32 GetLocalPlayerIndex() const