APlayerController::IsPrimaryPlayer

Wrapper for determining whether this player is the first player on their console.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h

Include

#include "GameFramework/PlayerController.h"

Source

/Engine/Source/Runtime/Engine/Private/PlayerController.cpp

Syntax

bool IsPrimaryPlayer() const

Remarks

Wrapper for determining whether this player is the first player on their console.

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