UEngine::GetAllLocalPlayerControllers

Gets all local players associated with the engine.

Choose your operating system:

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!