FLocalPlayerIterator

[FLocalPlayerIterator](API\Runtime\Engine\FLocalPlayerIterator) - Iterates over local players in the game.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/UnrealEngine.h

Include

#include "UnrealEngine.h"

Syntax

class FLocalPlayerIterator

Remarks

FLocalPlayerIterator - Iterates over local players in the game. There are no advantages to using this over GEngine->GetLocalPlayerIterator(GetWorld());

Example: for (FLocalPlayerIterator It(GEngine, GetWorld()); It; ++It) { // Do Stuff }

Variables

Name Description

Protected variable

TArray< class U...

 

Iter

Constructors

Name Description

Public function

FLocalPlayerIterator

(
    UEngine* InEngine,
    UWorld* InWorld
)

Functions

Name Description

Protected function

void

 

GetCurrent()

Operators

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