Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UEngine
Description
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!
| Name | GetAllLocalPlayerControllers |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Engine.h |
| Include Path | #include "Engine/Engine.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp |
void GetAllLocalPlayerControllers
(
TArray < APlayerController * > & PlayerList
)