ULocalPlayer::IsPrimaryPlayer

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

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss