UEngine::GetAllLocalPlayerControllers

Gets all local players associated with the engine.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Engine.h

Include

#include "Engine/Engine.h"

Source

/Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp

Syntax

void GetAllLocalPlayerControllers
(
    TArray< APlayerController * > & PlayerList
)

Remarks

Gets all local players associated with the engine. This function should only be used in rare cases where no UWorld* is available to get a player list associated with the world. E.g, - use GetFirstLocalPlayerController(UWorld *InWorld) when possible!

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