Navigation
API > API/Plugins > API/Plugins/ModularGameplay
Iterator for registered components on an actor
| Name | TComponentIterator |
| Type | class |
| Header File | /Engine/Plugins/Runtime/ModularGameplay/Source/ModularGameplay/Public/Components/GameFrameworkComponent.h |
| Include Path | #include "Components/GameFrameworkComponent.h" |
Syntax
template<typename T>
class TComponentIterator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TComponentIterator
(
AActor* OwnerActor |
Components/GameFrameworkComponent.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllComponents | TInlineComponentArray< T * > | Results from GetComponents | Components/GameFrameworkComponent.h | |
| CompIndex | int32 | Index of the current element in the componnet array | Components/GameFrameworkComponent.h |
Functions
Public
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Advance() |
Moves the iterator to the next valid component | Components/GameFrameworkComponent.h | |
T * GetComponent() |
Gets the current component | Components/GameFrameworkComponent.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator bool() |
Components/GameFrameworkComponent.h | ||
bool operator!() |
Components/GameFrameworkComponent.h | ||
bool operator!=
(
const TComponentIterator& Other |
Components/GameFrameworkComponent.h | ||
T * operator*() |
Components/GameFrameworkComponent.h | ||
void operator++() |
Components/GameFrameworkComponent.h | ||
bool operator==
(
const TComponentIterator& Other |
Components/GameFrameworkComponent.h | ||
T * operator->() |
Components/GameFrameworkComponent.h |