Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AActor
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ForEachComponent
(
bool bIncludeFromChildActors, |
Calls the compile-time lambda on each component of the specified type | GameFramework/Actor.h | |
void ForEachComponent
(
bool bIncludeFromChildActors, |
Calls the compile-time lambda on each valid component | GameFramework/Actor.h |
ForEachComponent(bool, Func)
Description
Calls the compile-time lambda on each component of the specified type
| Name | ForEachComponent |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include Path | #include "GameFramework/Actor.h" |
template<class ComponentType, typename Func>
void ForEachComponent
(
bool bIncludeFromChildActors,
Func InFunc
) const
Parameters
| Name | Remarks |
|---|---|
| ComponentType | The component class to find all components of a class derived from |
| bIncludeFromChildActors | If true then recurse in to ChildActor components and find components of the appropriate type in those Actors as well |
ForEachComponent(bool, Func)
Description
Calls the compile-time lambda on each valid component
| Name | ForEachComponent |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include Path | #include "GameFramework/Actor.h" |
template<typename Func>
void ForEachComponent
(
bool bIncludeFromChildActors,
Func InFunc
) const
Parameters
| Name | Remarks |
|---|---|
| bIncludeFromChildActors | If true then recurse in to ChildActor components and find components of the appropriate type in those Actors as well |