Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/UnrealEngine.h |
| Include | #include "UnrealEngine.h" |
Syntax
template<class T, bool LocalOnly>
class TBasePlayerControllerIterator
Remarks
PlayerControllerIterators This is the safest, most efficient way to iterate over player controllers.
Examples:
for (TPlayerControllerIterator
// This PC will always be locally controlled! check(PC->IsLocalController(); }
for (TPlayerControllerIterator
// This can only be done on the server! // Only the server has player controllers for everyone! check(GetWorld()->GetNetMode() != NM_Client); }
Variables
| Type | Name | Description | |
|---|---|---|---|
| T * | Current | ||
| FConstPlayerControllerIterator | Iter |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TBasePlayerControllerIterator
(
UWorld* InWorld |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | Next () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| T * | operator* () |
||
| void | operator++ () |
||
| T * | operator-> () |