ULocalPlayer::IsPrimaryPlayer

Determines whether this player is the first and primary player on their machine.

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

bool IsPrimaryPlayer() const

Remarks

Determines whether this player is the first and primary player on their machine.

Returns

true if this player is not using splitscreen, or is the first player in the split-screen layout.