Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/BehaviorTree > API/Runtime/AIModule/BehaviorTree/UBehaviorTreeComponent > API/Runtime/AIModule/BehaviorTree/UBehaviorTreeComponent/ForEachChildTask
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BehaviorTreeComponent.h |
| Include | #include "BehaviorTree/BehaviorTreeComponent.h" |
| Source | /Engine/Source/Runtime/AIModule/Private/BehaviorTree/BehaviorTreeComponent.cpp |
void ForEachChildTask
(
UBTCompositeNode & StartNode,
int32 InstanceIndex,
TFunctionRef < void &, const FBehaviorTreeInstance &, int32 InstanceIndex)> Functor
)
Remarks
Will call the given functor on each child node from the given start node. InstanceIndex can be found using FindInstanceContainingNode.