Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/AActor > API/Runtime/Engine/GameFramework/AActor/ForEachComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include | #include "GameFramework/Actor.h" |
template<typename Func>
void ForEachComponent
(
bool bIncludeFromChildActors,
Func InFunc
) const
Remarks
Calls the compile-time lambda on each valid component
Parameters
| Name | Description |
|---|---|
| bIncludeFromChildActors | If true then recurse in to ChildActor components and find components of the appropriate type in those Actors as well |