RealDocs

UKismetSystemLibrary::HasMultipleLocalPlayers

function Engine Blueprint Since unknown
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns whether there are currently multiple local players in the given world. This is the replacement for the deprecated IsSplitScreen node.

Caveats & Gotchas

  • Checks local player count on this client only — it says nothing about whether other clients on a networked session are split-screen or not.
  • Useful for adjusting HUD layout or camera setup, since split-screen viewports need per-player UI positioning that single-player setups don't.

Signature

static bool HasMultipleLocalPlayers(const UObject* WorldContextObject)

Parameters

Name Type Description Default
WorldContextObject const UObject* Object used to resolve the current world.

Return Type

bool

Example

Adjust HUD layout for split-screen C++
if (UKismetSystemLibrary::HasMultipleLocalPlayers(this))
{
    UseCompactSplitScreenHUD();
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.