TComponentIterator

Iterator for registered components on an actor

Choose your operating system:

Windows

macOS

Linux

References

Module

ModularGameplay

Header

/Engine/Plugins/Experimental/ModularGameplay/Source/ModularGameplay/Public/Components/GameFrameworkComponent.h

Include

#include "Components/GameFrameworkComponent.h"

Syntax

template<typename T>
class TComponentIterator

Remarks

Iterator for registered components on an actor

Constructors

Name Description

Public function

TComponentIterator

(
    AActor* OwnerActor
)

Functions

Name Description

Protected function

bool

 

Advance()

Moves the iterator to the next valid component

Protected function Const

T *

 

GetComponent()

Gets the current component

Operators